テーブル情報
システム名 http://www.as-link.com/  作成者 秦 松甫 
サブシステム名 ERPlus@iDempiere3.1_daily  作成日 2016/3/7 
スキーマ名 adempiere  更新日  
論理テーブル名   RDBMS  PostgreSQL 9.4.5 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.8.3 20140911 (Red Hat 4.8.3-9), 64-bit 9.4.5 
物理テーブル名 rv_c_invoice_prodweek     
備考


カラム情報
No 論理名 物理名 データ型 Not Null デフォルト 備考
1 ad_client_id numeric(10)  
2 ad_org_id numeric(10)  
3 m_product_category_id numeric(10)  
4 dateinvoiced date  
5 linenetamt numeric  
6 linelistamt numeric  
7 linelimitamt numeric  
8 linediscountamt numeric  
9 linediscount numeric  
10 lineoverlimitamt numeric  
11 lineoverlimit numeric  
12 qtyinvoiced numeric  
13 issotrx character(1)  


ソース
ソース
 SELECT il.ad_client_id,
il.ad_org_id,
il.m_product_category_id,
firstof((il.dateinvoiced)::timestamp with time zone, 'DY'::character varying) AS dateinvoiced,
sum(il.linenetamt) AS linenetamt,
sum(il.linelistamt) AS linelistamt,
sum(il.linelimitamt) AS linelimitamt,
sum(il.linediscountamt) AS linediscountamt,
CASE
WHEN (sum(il.linelistamt) = (0)::numeric) THEN (0)::numeric
ELSE currencyround((((sum(il.linelistamt) - sum(il.linenetamt)) / sum(il.linelistamt)) * (100)::numeric), i.c_currency_id, 'N'::character varying)
END AS linediscount,
sum(il.lineoverlimitamt) AS lineoverlimitamt,
CASE
WHEN (sum(il.linenetamt) = (0)::numeric) THEN (0)::numeric
ELSE ((100)::numeric - currencyround((((sum(il.linenetamt) - sum(il.lineoverlimitamt)) / sum(il.linenetamt)) * (100)::numeric), i.c_currency_id, 'N'::character varying))
END AS lineoverlimit,
sum(il.qtyinvoiced) AS qtyinvoiced,
il.issotrx
FROM (rv_c_invoiceline il
JOIN c_invoice i ON ((i.c_invoice_id = il.c_invoice_id)))
GROUP BY il.ad_client_id, il.ad_org_id, il.m_product_category_id, firstof((il.dateinvoiced)::timestamp with time zone, 'DY'::character varying), il.issotrx, i.c_currency_id;


インデックス情報
No インデックス名 カラムリスト ユニーク 備考


外部キー情報
No 外部キー名 カラムリスト 参照先 参照先カラムリスト


外部キー情報(PK側)
No 外部キー名 カラムリスト 参照元 参照元カラムリスト


RDBMS固有の情報
No プロパティ名 プロパティ値
1 schemaname adempiere
2 viewname rv_c_invoice_prodweek
3 viewowner adempiere
4 definition SELECT il.ad_client_id,
il.ad_org_id,
il.m_product_category_id,
firstof((il.dateinvoiced)::timestamp with time zone, 'DY'::character varying) AS dateinvoiced,
sum(il.linenetamt) AS linenetamt,
sum(il.linelistamt) AS linelistamt,
sum(il.linelimitamt) AS linelimitamt,
sum(il.linediscountamt) AS linediscountamt,
CASE
WHEN (sum(il.linelistamt) = (0)::numeric) THEN (0)::numeric
ELSE currencyround((((sum(il.linelistamt) - sum(il.linenetamt)) / sum(il.linelistamt)) * (100)::numeric), i.c_currency_id, 'N'::character varying)
END AS linediscount,
sum(il.lineoverlimitamt) AS lineoverlimitamt,
CASE
WHEN (sum(il.linenetamt) = (0)::numeric) THEN (0)::numeric
ELSE ((100)::numeric - currencyround((((sum(il.linenetamt) - sum(il.lineoverlimitamt)) / sum(il.linenetamt)) * (100)::numeric), i.c_currency_id, 'N'::character varying))
END AS lineoverlimit,
sum(il.qtyinvoiced) AS qtyinvoiced,
il.issotrx
FROM (rv_c_invoiceline il
JOIN c_invoice i ON ((i.c_invoice_id = il.c_invoice_id)))
GROUP BY il.ad_client_id, il.ad_org_id, il.m_product_category_id, firstof((il.dateinvoiced)::timestamp with time zone, 'DY'::character varying), il.issotrx, i.c_currency_id;