システム名 | 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_orderdetail | ||
備考 |
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_order_id | numeric(10) | ||||
9 | docstatus | character(2) | ||||
10 | docaction | character(2) | ||||
11 | c_doctype_id | numeric(10) | ||||
12 | isapproved | character(1) | ||||
13 | iscreditapproved | character(1) | ||||
14 | salesrep_id | numeric(10) | ||||
15 | bill_bpartner_id | numeric(10) | ||||
16 | bill_location_id | numeric(10) | ||||
17 | bill_user_id | numeric(10) | ||||
18 | isdropship | character(1) | ||||
19 | c_bpartner_id | numeric(10) | ||||
20 | c_bpartner_location_id | numeric(10) | ||||
21 | ad_user_id | numeric(10) | ||||
22 | poreference | character varying(20) | ||||
23 | c_currency_id | numeric(10) | ||||
24 | issotrx | character(1) | ||||
25 | c_campaign_id | numeric(10) | ||||
26 | c_project_id | numeric(10) | ||||
27 | c_activity_id | numeric(10) | ||||
28 | c_projectphase_id | numeric(10) | ||||
29 | c_projecttask_id | numeric(10) | ||||
30 | c_orderline_id | numeric(10) | ||||
31 | dateordered | timestamp without time zone | ||||
32 | datepromised | timestamp without time zone | ||||
33 | m_product_id | numeric(10) | ||||
34 | m_warehouse_id | numeric(10) | ||||
35 | m_attributesetinstance_id | numeric(10) | ||||
36 | productattribute | character varying | ||||
37 | m_attributeset_id | numeric(10) | ||||
38 | m_lot_id | numeric(10) | ||||
39 | guaranteedate | timestamp without time zone | ||||
40 | lot | character varying(40) | ||||
41 | serno | character varying(40) | ||||
42 | c_uom_id | numeric(10) | ||||
43 | qtyentered | numeric | ||||
44 | qtyordered | numeric | ||||
45 | qtyreserved | numeric | ||||
46 | qtydelivered | numeric | ||||
47 | qtyinvoiced | numeric | ||||
48 | priceactual | numeric | ||||
49 | priceentered | numeric | ||||
50 | qtytodeliver | numeric | ||||
51 | qtytoinvoice | numeric | ||||
52 | netamttoinvoice | numeric | ||||
53 | qtylostsales | numeric | ||||
54 | amtlostsales | numeric | ||||
55 | discount | numeric | ||||
56 | margin | numeric | ||||
57 | marginamt | numeric | ||||
58 | c_order_ad_org_id | numeric(10) | ||||
59 | c_order_ad_orgtrx_id | numeric(10) | ||||
60 | amountrefunded | numeric(22, 2) | ||||
61 | amounttendered | numeric(22, 2) | ||||
62 | c_order_c_activity_id | numeric(10) | ||||
63 | c_order_c_bpartner_id | numeric(10) | ||||
64 | c_order_c_bpartner_loc_id | numeric(10) | ||||
65 | c_order_c_compaign_id | numeric(10) | ||||
66 | c_cashline_id | numeric(10) | ||||
67 | c_cashplanline_id | numeric(10) | ||||
68 | c_order_c_charge_id | numeric(10) | ||||
69 | c_conversiontype_id | numeric(10) | ||||
70 | c_doctypetarget_id | numeric(10) | ||||
71 | chargeamt | numeric | ||||
72 | copyfrom | character(1) | ||||
73 | c_payment_id | numeric(10) | ||||
74 | c_paymentterm_id | numeric(10) | ||||
75 | c_pos_id | numeric(10) | ||||
76 | c_order_c_project_id | numeric(10) | ||||
77 | c_order_created | timestamp without time zone | ||||
78 | c_order_createdby | numeric(10) | ||||
79 | dateacct | timestamp without time zone | ||||
80 | c_order_dateordered | timestamp without time zone | ||||
81 | dateprinted | timestamp without time zone | ||||
82 | c_order_datepromised | timestamp without time zone | ||||
83 | deliveryrule | character(1) | ||||
84 | deliveryviarule | character(1) | ||||
85 | c_order_description | character varying(255) | ||||
86 | documentno | character varying(30) | ||||
87 | dropship_bpartner_id | numeric(10) | ||||
88 | dropship_location_id | numeric(10) | ||||
89 | dropship_user_id | numeric(10) | ||||
90 | c_order_freightamt | numeric | ||||
91 | freightcostrule | character(1) | ||||
92 | grandtotal | numeric | ||||
93 | invoicerule | character(1) | ||||
94 | c_order_isactive | character(1) | ||||
95 | isdelivered | character(1) | ||||
96 | isdiscountprinted | character(1) | ||||
97 | isinvoiced | character(1) | ||||
98 | ispayschedulevalid | character(1) | ||||
99 | isprinted | character(1) | ||||
100 | isselected | character(1) | ||||
101 | isselfservice | character(1) | ||||
102 | istaxincluded | character(1) | ||||
103 | istransferred | character(1) | ||||
104 | link_order_id | numeric(10) | ||||
105 | m_freightcategory_id | numeric(10) | ||||
106 | m_pricelist_id | numeric(10) | ||||
107 | c_order_m_shipper_id | numeric(10) | ||||
108 | c_order_m_warehouse_id | numeric(10) | ||||
109 | ordertype | character varying(510) | ||||
110 | pay_bpartner_id | numeric(10) | ||||
111 | pay_location_id | numeric(10) | ||||
112 | paymentrule | character(1) | ||||
113 | posted | character(1) | ||||
114 | priorityrule | character(1) | ||||
115 | c_order_processed | character(1) | ||||
116 | processedon | numeric | ||||
117 | promotioncode | character varying(30) | ||||
118 | ref_order_id | numeric(10) | ||||
119 | sendemail | character(1) | ||||
120 | totallines | numeric | ||||
121 | c_order_updated | timestamp without time zone | ||||
122 | c_order_updatedby | numeric(10) | ||||
123 | c_order_user1_id | numeric(10) | ||||
124 | c_order_user2_id | numeric(10) | ||||
125 | volume | numeric | ||||
126 | weight | numeric | ||||
127 | c_orderline_ad_orgtrx_id | numeric(10) | ||||
128 | c_orderline_c_charge_id | numeric(10) | ||||
129 | c_orderline_c_currency_id | numeric(10) | ||||
130 | c_tax_id | numeric(10) | ||||
131 | datedelivered | timestamp without time zone | ||||
132 | dateinvoiced | timestamp without time zone | ||||
133 | c_orderline_description | character varying(255) | ||||
134 | c_orderline_discount | numeric | ||||
135 | c_orderline_freightamt | numeric | ||||
136 | isdescription | character(1) | ||||
137 | line | numeric(10) | ||||
138 | linenetamt | numeric | ||||
139 | link_orderline_id | numeric(10) | ||||
140 | m_promotion_id | numeric(10) | ||||
141 | c_orderline_m_shipper_id | numeric(10) | ||||
142 | pricecost | numeric | ||||
143 | pricelimit | numeric | ||||
144 | pricelist | numeric | ||||
145 | c_orderline_processed | character(1) | ||||
146 | ref_orderline_id | numeric(10) | ||||
147 | rramt | numeric | ||||
148 | rrstartdate | timestamp without time zone | ||||
149 | s_resourceassignment_id | numeric(10) | ||||
150 | c_orderline_user1_id | numeric(10) | ||||
151 | c_orderline_user2_id | numeric(10) | ||||
152 | m_asi_ad_org_id | numeric(10) | ||||
153 | m_asi_created | timestamp without time zone | ||||
154 | m_asi_createdby | numeric(10) | ||||
155 | m_asi_description | character varying(255) | ||||
156 | m_asi_isactive | character(1) | ||||
157 | m_asi_updated | timestamp without time zone | ||||
158 | m_asi_updatedby | numeric(10) |
ソース |
---|
SELECT l.ad_client_id, |
No | インデックス名 | カラムリスト | ユニーク | 備考 |
---|
No | 外部キー名 | カラムリスト | 参照先 | 参照先カラムリスト |
---|
No | 外部キー名 | カラムリスト | 参照元 | 参照元カラムリスト |
---|
No | プロパティ名 | プロパティ値 |
---|---|---|
1 | schemaname | adempiere |
2 | viewname | rv_orderdetail |
3 | viewowner | adempiere |
4 | definition | SELECT l.ad_client_id, l.ad_org_id, l.isactive, l.created, l.createdby, l.updated, l.updatedby, o.c_order_id, o.docstatus, o.docaction, o.c_doctype_id, o.isapproved, o.iscreditapproved, o.salesrep_id, o.bill_bpartner_id, o.bill_location_id, o.bill_user_id, o.isdropship, l.c_bpartner_id, l.c_bpartner_location_id, o.ad_user_id, o.poreference, o.c_currency_id, o.issotrx, l.c_campaign_id, l.c_project_id, l.c_activity_id, l.c_projectphase_id, l.c_projecttask_id, l.c_orderline_id, l.dateordered, l.datepromised, l.m_product_id, l.m_warehouse_id, l.m_attributesetinstance_id, productattribute(l.m_attributesetinstance_id) AS productattribute, pasi.m_attributeset_id, pasi.m_lot_id, pasi.guaranteedate, pasi.lot, pasi.serno, l.c_uom_id, l.qtyentered, l.qtyordered, l.qtyreserved, l.qtydelivered, l.qtyinvoiced, l.priceactual, l.priceentered, (l.qtyordered - l.qtydelivered) AS qtytodeliver, (l.qtyordered - l.qtyinvoiced) AS qtytoinvoice, ((l.qtyordered - l.qtyinvoiced) * l.priceactual) AS netamttoinvoice, l.qtylostsales, (l.qtylostsales * l.priceactual) AS amtlostsales, CASE WHEN (l.pricelist = (0)::numeric) THEN (0)::numeric ELSE currencyround((((l.pricelist - l.priceactual) / l.pricelist) * (100)::numeric), o.c_currency_id, 'N'::character varying) END AS discount, CASE WHEN (l.pricelimit = (0)::numeric) THEN (0)::numeric ELSE currencyround((((l.priceactual - l.pricelimit) / l.pricelimit) * (100)::numeric), o.c_currency_id, 'N'::character varying) END AS margin, CASE WHEN (l.pricelimit = (0)::numeric) THEN (0)::numeric ELSE ((l.priceactual - l.pricelimit) * l.qtydelivered) END AS marginamt, o.ad_org_id AS c_order_ad_org_id, o.ad_orgtrx_id AS c_order_ad_orgtrx_id, o.amountrefunded, o.amounttendered, o.c_activity_id AS c_order_c_activity_id, o.c_bpartner_id AS c_order_c_bpartner_id, o.c_bpartner_location_id AS c_order_c_bpartner_loc_id, o.c_campaign_id AS c_order_c_compaign_id, o.c_cashline_id, o.c_cashplanline_id, o.c_charge_id AS c_order_c_charge_id, o.c_conversiontype_id, o.c_doctypetarget_id, o.chargeamt, o.copyfrom, o.c_payment_id, o.c_paymentterm_id, o.c_pos_id, o.c_project_id AS c_order_c_project_id, o.created AS c_order_created, o.createdby AS c_order_createdby, o.dateacct, o.dateordered AS c_order_dateordered, o.dateprinted, o.datepromised AS c_order_datepromised, o.deliveryrule, o.deliveryviarule, o.description AS c_order_description, o.documentno, o.dropship_bpartner_id, o.dropship_location_id, o.dropship_user_id, o.freightamt AS c_order_freightamt, o.freightcostrule, o.grandtotal, o.invoicerule, o.isactive AS c_order_isactive, o.isdelivered, o.isdiscountprinted, o.isinvoiced, o.ispayschedulevalid, o.isprinted, o.isselected, o.isselfservice, o.istaxincluded, o.istransferred, o.link_order_id, o.m_freightcategory_id, o.m_pricelist_id, o.m_shipper_id AS c_order_m_shipper_id, o.m_warehouse_id AS c_order_m_warehouse_id, o.ordertype, o.pay_bpartner_id, o.pay_location_id, o.paymentrule, o.posted, o.priorityrule, o.processed AS c_order_processed, o.processedon, o.promotioncode, o.ref_order_id, o.sendemail, o.totallines, o.updated AS c_order_updated, o.updatedby AS c_order_updatedby, o.user1_id AS c_order_user1_id, o.user2_id AS c_order_user2_id, o.volume, o.weight, l.ad_orgtrx_id AS c_orderline_ad_orgtrx_id, l.c_charge_id AS c_orderline_c_charge_id, l.c_currency_id AS c_orderline_c_currency_id, l.c_tax_id, l.datedelivered, l.dateinvoiced, l.description AS c_orderline_description, l.discount AS c_orderline_discount, l.freightamt AS c_orderline_freightamt, l.isdescription, l.line, l.linenetamt, l.link_orderline_id, l.m_promotion_id, l.m_shipper_id AS c_orderline_m_shipper_id, l.pricecost, l.pricelimit, l.pricelist, l.processed AS c_orderline_processed, l.ref_orderline_id, l.rramt, l.rrstartdate, l.s_resourceassignment_id, l.user1_id AS c_orderline_user1_id, l.user2_id AS c_orderline_user2_id, pasi.ad_org_id AS m_asi_ad_org_id, pasi.created AS m_asi_created, pasi.createdby AS m_asi_createdby, pasi.description AS m_asi_description, pasi.isactive AS m_asi_isactive, pasi.updated AS m_asi_updated, pasi.updatedby AS m_asi_updatedby FROM ((c_order o JOIN c_orderline l ON ((o.c_order_id = l.c_order_id))) LEFT JOIN m_attributesetinstance pasi ON ((l.m_attributesetinstance_id = pasi.m_attributesetinstance_id))); |