190330 iDempiere
1. 換 Logo
PS. 圖片外框是切換到 HTML 模式,找到該圖片的 img,將其 border="0" 的 0 改為 1 或您要的厚度。
2. 報表
由於進度跟不上,所以先做筆記
For r IN
(
-- drop table t_salesamt
-- create table t_salesamt as
SELECT 0 ad_pinstance_id,
o.ad_client_id,
o.ad_org_id,
o.SalesRep_ID,
0 m_product_id,
0 c_bpartner_id,
SUM( ol.linenetamt )
FROM c_orderline ol
INNER JOIN c_order o ON ol.c_order_id=o.c_order_id
GROUP BY o.ad_client_id, o.ad_org_id, o.SalesRep_ID
)
LOOP
v_message := 'LOOP process';
INSERT INTO t_salesamt (ad_pinstance_id, ad_client_id, ad_org_id, salesrep_id, m_product_id, c_bpartner_id, sum)
VALUES (r.ad_pinstance_id, r.ad_client_id, r.ad_org_id, r.salesrep_id, r.m_product_id, r.c_bpartner_id, r.sum)
END LOOP;
以 WEBUI_LOGOURL Lookup |
修改 Configured Value,並 Active |
2. 報表
由於進度跟不上,所以先做筆記
For r IN
(
-- drop table t_salesamt
-- create table t_salesamt as
SELECT 0 ad_pinstance_id,
o.ad_client_id,
o.ad_org_id,
o.SalesRep_ID,
0 m_product_id,
0 c_bpartner_id,
SUM( ol.linenetamt )
FROM c_orderline ol
INNER JOIN c_order o ON ol.c_order_id=o.c_order_id
GROUP BY o.ad_client_id, o.ad_org_id, o.SalesRep_ID
)
LOOP
v_message := 'LOOP process';
INSERT INTO t_salesamt (ad_pinstance_id, ad_client_id, ad_org_id, salesrep_id, m_product_id, c_bpartner_id, sum)
VALUES (r.ad_pinstance_id, r.ad_client_id, r.ad_org_id, r.salesrep_id, r.m_product_id, r.c_bpartner_id, r.sum)
END LOOP;
留言
張貼留言