テーブル情報
システム名 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_invoiceline     
備考


カラム情報
No 論理名 物理名 データ型 Not Null デフォルト 備考
1 ad_client_id numeric(10)  
2 ad_org_id numeric(10)  
3 isactive character(1)  
4 created timestamp without time zone  
5 createdby numeric(10)  
6 updated timestamp without time zone  
7 updatedby numeric(10)  
8 c_invoiceline_id numeric(10)  
9 c_invoice_id numeric(10)  
10 salesrep_id numeric(10)  
11 c_bpartner_id numeric(10)  
12 c_bp_group_id numeric(10)  
13 m_product_id numeric(10)  
14 m_product_category_id numeric(10)  
15 dateinvoiced timestamp without time zone  
16 dateacct timestamp without time zone  
17 issotrx character(1)  
18 c_doctype_id numeric(10)  
19 docstatus character(2)  
20 ispaid character(1)  
21 c_campaign_id numeric(10)  
22 c_project_id numeric(10)  
23 c_activity_id numeric(10)  
24 c_projectphase_id numeric(10)  
25 c_projecttask_id numeric(10)  
26 qtyinvoiced numeric  
27 qtyentered numeric  
28 m_attributesetinstance_id numeric(10)  
29 productattribute character varying  
30 m_attributeset_id numeric(10)  
31 m_lot_id numeric(10)  
32 guaranteedate timestamp without time zone  
33 lot character varying(40)  
34 serno character varying(40)  
35 pricelist numeric  
36 priceactual numeric  
37 pricelimit numeric  
38 priceentered numeric  
39 discount numeric  
40 margin numeric  
41 marginamt numeric  
42 linenetamt numeric  
43 linelistamt numeric  
44 linelimitamt numeric  
45 linediscountamt numeric  
46 lineoverlimitamt numeric  
47 ad_orgtrx_id numeric(10)  
48 a_processed character(1)  
49 c_charge_id numeric(10)  
50 c_orderline_id numeric(10)  
51 c_tax_id numeric(10)  
52 c_invoiceline_c_uom_id numeric(10)  
53 c_invoiceline_description character varying(255)  
54 isdescription character(1)  
55 isprinted character(1)  
56 line numeric(10)  
57 c_invoiceline_linenetamt numeric  
58 linetotalamt numeric  
59 m_inoutline_id numeric(10)  
60 m_rmaline_id numeric(10)  
61 processed character(1)  
62 ref_invoiceline_id numeric(10)  
63 rramt numeric  
64 rrstartdate timestamp without time zone  
65 s_resourceassignment_id numeric(10)  
66 taxamt numeric  
67 user1_id numeric(10)  
68 user2_id numeric(10)  
69 m_product_ad_org_id numeric(10)  
70 classification character varying(12)  
71 m_product_copyfrom character(1)  
72 m_product_created timestamp without time zone  
73 m_product_createdby numeric(10)  
74 c_revenuerecognition_id numeric(10)  
75 c_subscriptiontype_id numeric(10)  
76 c_taxcategory_id numeric(10)  
77 m_productline_c_uom_id numeric(10)  
78 m_product_description character varying(255)  
79 descriptionurl character varying(120)  
80 discontinued character(1)  
81 discontinuedat timestamp without time zone  
82 documentnote character varying(2000)  
83 group1 character varying(255)  
84 group2 character varying(255)  
85 guaranteedays numeric(10)  
86 guaranteedaysmin numeric(10)  
87 help character varying(2000)  
88 imageurl character varying(120)  
89 m_product_isactive character(1)  
90 isdropship character(1)  
91 isexcludeautodelivery character(1)  
92 isinvoiceprintdetails character(1)  
93 ispicklistprintdetails character(1)  
94 ispurchased character(1)  
95 isselfservice character(1)  
96 issold character(1)  
97 isstocked character(1)  
98 m_product_issummary character(1)  
99 isverified character(1)  
100 iswebstorefeatured character(1)  
101 lowlevel numeric(10)  
102 m_product_m_attributeset_id numeric(10)  
103 m_freightcategory_id numeric(10)  
104 m_locator_id numeric(10)  
105 m_product_m_product_id numeric(10)  
106 m_product_processing character(1)  
107 producttype character(1)  
108 r_mailtext_id numeric(10)  
109 m_product_salesrep_id numeric(10)  
110 s_expensetype_id numeric(10)  
111 shelfdepth numeric(10)  
112 shelfheight numeric  
113 shelfwidth numeric(10)  
114 sku character varying(30)  
115 s_resource_id numeric(10)  
116 unitsperpack numeric(10)  
117 unitsperpallet numeric  
118 m_product_updated timestamp without time zone  
119 m_product_updatedby numeric(10)  
120 versionno character varying(20)  
121 volume numeric  
122 weight numeric  
123 m_asi_ad_org_id numeric(10)  
124 m_attributesetinstance_created timestamp without time zone  
125 m_asi_createdby numeric(10)  
126 m_asi_description character varying(255)  
127 m_attributesetinstance_isacti character(1)  
128 m_attributesetinstance_serno character varying(40)  
129 m_attributesetinstance_updated timestamp without time zone  
130 m_asi_updatedby numeric(10)  


ソース
ソース
 SELECT il.ad_client_id,
il.ad_org_id,
il.isactive,
il.created,
il.createdby,
il.updated,
il.updatedby,
il.c_invoiceline_id,
i.c_invoice_id,
i.salesrep_id,
i.c_bpartner_id,
i.c_bp_group_id,
il.m_product_id,
p.m_product_category_id,
i.dateinvoiced,
i.dateacct,
i.issotrx,
i.c_doctype_id,
i.docstatus,
i.ispaid,
il.c_campaign_id,
il.c_project_id,
il.c_activity_id,
il.c_projectphase_id,
il.c_projecttask_id,
(il.qtyinvoiced * (i.multiplier)::numeric) AS qtyinvoiced,
(il.qtyentered * (i.multiplier)::numeric) AS qtyentered,
il.m_attributesetinstance_id,
productattribute(il.m_attributesetinstance_id) AS productattribute,
pasi.m_attributeset_id,
pasi.m_lot_id,
pasi.guaranteedate,
pasi.lot,
pasi.serno,
il.pricelist,
il.priceactual,
il.pricelimit,
il.priceentered,
CASE
WHEN (il.pricelist = (0)::numeric) THEN (0)::numeric
ELSE currencyround((((il.pricelist - il.priceactual) / il.pricelist) * (100)::numeric), i.c_currency_id, 'N'::character varying)
END AS discount,
CASE
WHEN (il.pricelimit = (0)::numeric) THEN (0)::numeric
ELSE currencyround((((il.priceactual - il.pricelimit) / il.pricelimit) * (100)::numeric), i.c_currency_id, 'N'::character varying)
END AS margin,
CASE
WHEN (il.pricelimit = (0)::numeric) THEN (0)::numeric
ELSE (((il.priceactual - il.pricelimit) * il.qtyinvoiced) * (i.multiplier)::numeric)
END AS marginamt,
currencyround(((i.multiplier)::numeric * il.linenetamt), i.c_currency_id, 'N'::character varying) AS linenetamt,
currencyround((((i.multiplier)::numeric * il.pricelist) * il.qtyinvoiced), i.c_currency_id, 'N'::character varying) AS linelistamt,
CASE
WHEN (COALESCE(il.pricelimit, (0)::numeric) = (0)::numeric) THEN currencyround(((i.multiplier)::numeric * il.linenetamt), i.c_currency_id, 'N'::character varying)
ELSE currencyround((((i.multiplier)::numeric * il.pricelimit) * il.qtyinvoiced), i.c_currency_id, 'N'::character varying)
END AS linelimitamt,
currencyround(((i.multiplier)::numeric * ((il.pricelist * il.qtyinvoiced) - il.linenetamt)), i.c_currency_id, 'N'::character varying) AS linediscountamt,
CASE
WHEN (COALESCE(il.pricelimit, (0)::numeric) = (0)::numeric) THEN (0)::numeric
ELSE currencyround(((i.multiplier)::numeric * (il.linenetamt - (il.pricelimit * il.qtyinvoiced))), i.c_currency_id, 'N'::character varying)
END AS lineoverlimitamt,
il.ad_orgtrx_id,
il.a_processed,
il.c_charge_id,
il.c_orderline_id,
il.c_tax_id,
il.c_uom_id AS c_invoiceline_c_uom_id,
il.description AS c_invoiceline_description,
il.isdescription,
il.isprinted,
il.line,
il.linenetamt AS c_invoiceline_linenetamt,
il.linetotalamt,
il.m_inoutline_id,
il.m_rmaline_id,
il.processed,
il.ref_invoiceline_id,
il.rramt,
il.rrstartdate,
il.s_resourceassignment_id,
il.taxamt,
il.user1_id,
il.user2_id,
p.ad_org_id AS m_product_ad_org_id,
p.classification,
p.copyfrom AS m_product_copyfrom,
p.created AS m_product_created,
p.createdby AS m_product_createdby,
p.c_revenuerecognition_id,
p.c_subscriptiontype_id,
p.c_taxcategory_id,
p.c_uom_id AS m_productline_c_uom_id,
p.description AS m_product_description,
p.descriptionurl,
p.discontinued,
p.discontinuedat,
p.documentnote,
p.group1,
p.group2,
p.guaranteedays,
p.guaranteedaysmin,
p.help,
p.imageurl,
p.isactive AS m_product_isactive,
p.isdropship,
p.isexcludeautodelivery,
p.isinvoiceprintdetails,
p.ispicklistprintdetails,
p.ispurchased,
p.isselfservice,
p.issold,
p.isstocked,
p.issummary AS m_product_issummary,
p.isverified,
p.iswebstorefeatured,
p.lowlevel,
p.m_attributeset_id AS m_product_m_attributeset_id,
p.m_freightcategory_id,
p.m_locator_id,
p.m_product_id AS m_product_m_product_id,
p.processing AS m_product_processing,
p.producttype,
p.r_mailtext_id,
p.salesrep_id AS m_product_salesrep_id,
p.s_expensetype_id,
p.shelfdepth,
p.shelfheight,
p.shelfwidth,
p.sku,
p.s_resource_id,
p.unitsperpack,
p.unitsperpallet,
p.updated AS m_product_updated,
p.updatedby AS m_product_updatedby,
p.versionno,
p.volume,
p.weight,
pasi.ad_org_id AS m_asi_ad_org_id,
pasi.created AS m_attributesetinstance_created,
pasi.createdby AS m_asi_createdby,
pasi.description AS m_asi_description,
pasi.isactive AS m_attributesetinstance_isacti,
pasi.serno AS m_attributesetinstance_serno,
pasi.updated AS m_attributesetinstance_updated,
pasi.updatedby AS m_asi_updatedby
FROM (((rv_c_invoice i
JOIN c_invoiceline il ON ((i.c_invoice_id = il.c_invoice_id)))
LEFT JOIN m_product p ON ((il.m_product_id = p.m_product_id)))
LEFT JOIN m_attributesetinstance pasi ON ((il.m_attributesetinstance_id = pasi.m_attributesetinstance_id)));


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


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


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


RDBMS固有の情報
No プロパティ名 プロパティ値
1 schemaname adempiere
2 viewname rv_c_invoiceline
3 viewowner adempiere
4 definition SELECT il.ad_client_id,
il.ad_org_id,
il.isactive,
il.created,
il.createdby,
il.updated,
il.updatedby,
il.c_invoiceline_id,
i.c_invoice_id,
i.salesrep_id,
i.c_bpartner_id,
i.c_bp_group_id,
il.m_product_id,
p.m_product_category_id,
i.dateinvoiced,
i.dateacct,
i.issotrx,
i.c_doctype_id,
i.docstatus,
i.ispaid,
il.c_campaign_id,
il.c_project_id,
il.c_activity_id,
il.c_projectphase_id,
il.c_projecttask_id,
(il.qtyinvoiced * (i.multiplier)::numeric) AS qtyinvoiced,
(il.qtyentered * (i.multiplier)::numeric) AS qtyentered,
il.m_attributesetinstance_id,
productattribute(il.m_attributesetinstance_id) AS productattribute,
pasi.m_attributeset_id,
pasi.m_lot_id,
pasi.guaranteedate,
pasi.lot,
pasi.serno,
il.pricelist,
il.priceactual,
il.pricelimit,
il.priceentered,
CASE
WHEN (il.pricelist = (0)::numeric) THEN (0)::numeric
ELSE currencyround((((il.pricelist - il.priceactual) / il.pricelist) * (100)::numeric), i.c_currency_id, 'N'::character varying)
END AS discount,
CASE
WHEN (il.pricelimit = (0)::numeric) THEN (0)::numeric
ELSE currencyround((((il.priceactual - il.pricelimit) / il.pricelimit) * (100)::numeric), i.c_currency_id, 'N'::character varying)
END AS margin,
CASE
WHEN (il.pricelimit = (0)::numeric) THEN (0)::numeric
ELSE (((il.priceactual - il.pricelimit) * il.qtyinvoiced) * (i.multiplier)::numeric)
END AS marginamt,
currencyround(((i.multiplier)::numeric * il.linenetamt), i.c_currency_id, 'N'::character varying) AS linenetamt,
currencyround((((i.multiplier)::numeric * il.pricelist) * il.qtyinvoiced), i.c_currency_id, 'N'::character varying) AS linelistamt,
CASE
WHEN (COALESCE(il.pricelimit, (0)::numeric) = (0)::numeric) THEN currencyround(((i.multiplier)::numeric * il.linenetamt), i.c_currency_id, 'N'::character varying)
ELSE currencyround((((i.multiplier)::numeric * il.pricelimit) * il.qtyinvoiced), i.c_currency_id, 'N'::character varying)
END AS linelimitamt,
currencyround(((i.multiplier)::numeric * ((il.pricelist * il.qtyinvoiced) - il.linenetamt)), i.c_currency_id, 'N'::character varying) AS linediscountamt,
CASE
WHEN (COALESCE(il.pricelimit, (0)::numeric) = (0)::numeric) THEN (0)::numeric
ELSE currencyround(((i.multiplier)::numeric * (il.linenetamt - (il.pricelimit * il.qtyinvoiced))), i.c_currency_id, 'N'::character varying)
END AS lineoverlimitamt,
il.ad_orgtrx_id,
il.a_processed,
il.c_charge_id,
il.c_orderline_id,
il.c_tax_id,
il.c_uom_id AS c_invoiceline_c_uom_id,
il.description AS c_invoiceline_description,
il.isdescription,
il.isprinted,
il.line,
il.linenetamt AS c_invoiceline_linenetamt,
il.linetotalamt,
il.m_inoutline_id,
il.m_rmaline_id,
il.processed,
il.ref_invoiceline_id,
il.rramt,
il.rrstartdate,
il.s_resourceassignment_id,
il.taxamt,
il.user1_id,
il.user2_id,
p.ad_org_id AS m_product_ad_org_id,
p.classification,
p.copyfrom AS m_product_copyfrom,
p.created AS m_product_created,
p.createdby AS m_product_createdby,
p.c_revenuerecognition_id,
p.c_subscriptiontype_id,
p.c_taxcategory_id,
p.c_uom_id AS m_productline_c_uom_id,
p.description AS m_product_description,
p.descriptionurl,
p.discontinued,
p.discontinuedat,
p.documentnote,
p.group1,
p.group2,
p.guaranteedays,
p.guaranteedaysmin,
p.help,
p.imageurl,
p.isactive AS m_product_isactive,
p.isdropship,
p.isexcludeautodelivery,
p.isinvoiceprintdetails,
p.ispicklistprintdetails,
p.ispurchased,
p.isselfservice,
p.issold,
p.isstocked,
p.issummary AS m_product_issummary,
p.isverified,
p.iswebstorefeatured,
p.lowlevel,
p.m_attributeset_id AS m_product_m_attributeset_id,
p.m_freightcategory_id,
p.m_locator_id,
p.m_product_id AS m_product_m_product_id,
p.processing AS m_product_processing,
p.producttype,
p.r_mailtext_id,
p.salesrep_id AS m_product_salesrep_id,
p.s_expensetype_id,
p.shelfdepth,
p.shelfheight,
p.shelfwidth,
p.sku,
p.s_resource_id,
p.unitsperpack,
p.unitsperpallet,
p.updated AS m_product_updated,
p.updatedby AS m_product_updatedby,
p.versionno,
p.volume,
p.weight,
pasi.ad_org_id AS m_asi_ad_org_id,
pasi.created AS m_attributesetinstance_created,
pasi.createdby AS m_asi_createdby,
pasi.description AS m_asi_description,
pasi.isactive AS m_attributesetinstance_isacti,
pasi.serno AS m_attributesetinstance_serno,
pasi.updated AS m_attributesetinstance_updated,
pasi.updatedby AS m_asi_updatedby
FROM (((rv_c_invoice i
JOIN c_invoiceline il ON ((i.c_invoice_id = il.c_invoice_id)))
LEFT JOIN m_product p ON ((il.m_product_id = p.m_product_id)))
LEFT JOIN m_attributesetinstance pasi ON ((il.m_attributesetinstance_id = pasi.m_attributesetinstance_id)));