システム名 | 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_vendormonth | ||
備考 |
No | 論理名 | 物理名 | データ型 | Not Null | デフォルト | 備考 |
---|---|---|---|---|---|---|
1 | ad_client_id | numeric(10) | ||||
2 | ad_org_id | numeric(10) | ||||
3 | c_bpartner_id | numeric(10) | ||||
4 | m_product_category_id | numeric(10) | ||||
5 | dateinvoiced | date | ||||
6 | linenetamt | numeric | ||||
7 | linelistamt | numeric | ||||
8 | linelimitamt | numeric | ||||
9 | linediscountamt | numeric | ||||
10 | linediscount | numeric | ||||
11 | lineoverlimitamt | numeric | ||||
12 | lineoverlimit | numeric | ||||
13 | qtyinvoiced | numeric |
ソース |
---|
SELECT il.ad_client_id, |
No | インデックス名 | カラムリスト | ユニーク | 備考 |
---|
No | 外部キー名 | カラムリスト | 参照先 | 参照先カラムリスト |
---|
No | 外部キー名 | カラムリスト | 参照元 | 参照元カラムリスト |
---|
No | プロパティ名 | プロパティ値 |
---|---|---|
1 | schemaname | adempiere |
2 | viewname | rv_c_invoice_vendormonth |
3 | viewowner | adempiere |
4 | definition | SELECT il.ad_client_id, il.ad_org_id, po.c_bpartner_id, il.m_product_category_id, firstof((il.dateinvoiced)::timestamp with time zone, 'MM'::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 FROM ((rv_c_invoiceline il JOIN c_invoice i ON ((i.c_invoice_id = il.c_invoice_id))) JOIN m_product_po po ON ((il.m_product_id = po.m_product_id))) WHERE (il.issotrx = 'Y'::bpchar) GROUP BY il.ad_client_id, il.ad_org_id, po.c_bpartner_id, il.m_product_category_id, firstof((il.dateinvoiced)::timestamp with time zone, 'MM'::character varying), i.c_currency_id; |