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


カラム情報
No 論理名 物理名 データ型 Not Null デフォルト 備考
1 ad_client_id numeric(10)  
2 ad_org_id numeric(10)  
3 createdby numeric(10)  
4 updatedby numeric(10)  
5 updated timestamp without time zone  
6 created timestamp without time zone  
7 isactive character(1)  
8 pp_order_bom_id numeric(10)  
9 pp_order_bomline_id numeric(10)  
10 pp_order_id numeric(10)  
11 iscritical character(1)  
12 m_product_id numeric(10)  
13 name character varying(255)  
14 c_uom_id numeric(10)  
15 qtyonhand numeric  
16 qtyrequiered numeric  
17 qtybatchsize numeric  
18 qtyreserved numeric  
19 qtyavailable numeric  
20 m_warehouse_id numeric(10)  
21 qtybom numeric  
22 isqtypercentage character(1)  
23 qtybatch numeric  
24 m_attributesetinstance_id numeric(10)  
25 m_locator_id numeric(10)  
26 x character varying(60)  
27 y character varying(60)  
28 z character varying(60)  


ソース
ソース
 SELECT obl.ad_client_id,
obl.ad_org_id,
obl.createdby,
obl.updatedby,
obl.updated,
obl.created,
obl.isactive,
obl.pp_order_bom_id,
obl.pp_order_bomline_id,
obl.pp_order_id,
obl.iscritical,
obl.m_product_id,
( SELECT p.name
FROM m_product p
WHERE (p.m_product_id = o.m_product_id)) AS name,
obl.c_uom_id,
s.qtyonhand,
round(obl.qtyrequiered, 4) AS qtyrequiered,
CASE
WHEN (o.qtybatchs = (0)::numeric) THEN (1)::numeric
ELSE round((obl.qtyrequiered / o.qtybatchs), 4)
END AS qtybatchsize,
round(bomqtyreserved(obl.m_product_id, obl.m_warehouse_id, (0)::numeric), 4) AS qtyreserved,
round(bomqtyavailable(obl.m_product_id, obl.m_warehouse_id, (0)::numeric), 4) AS qtyavailable,
obl.m_warehouse_id,
obl.qtybom,
obl.isqtypercentage,
round(obl.qtybatch, 4) AS qtybatch,
obl.m_attributesetinstance_id,
l.m_locator_id,
l.x,
l.y,
l.z
FROM (((pp_order_bomline obl
JOIN pp_order o ON ((o.pp_order_id = obl.pp_order_id)))
LEFT JOIN m_storage s ON ((((s.m_product_id = obl.m_product_id) AND (s.qtyonhand <> (0)::numeric)) AND (obl.m_warehouse_id = ( SELECT ld.m_warehouse_id
FROM m_locator ld
WHERE (s.m_locator_id = ld.m_locator_id))))))
LEFT JOIN m_locator l ON ((l.m_locator_id = s.m_locator_id)))
ORDER BY obl.m_product_id;


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


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


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


RDBMS固有の情報
No プロパティ名 プロパティ値
1 schemaname adempiere
2 viewname rv_pp_order_storage
3 viewowner adempiere
4 definition SELECT obl.ad_client_id,
obl.ad_org_id,
obl.createdby,
obl.updatedby,
obl.updated,
obl.created,
obl.isactive,
obl.pp_order_bom_id,
obl.pp_order_bomline_id,
obl.pp_order_id,
obl.iscritical,
obl.m_product_id,
( SELECT p.name
FROM m_product p
WHERE (p.m_product_id = o.m_product_id)) AS name,
obl.c_uom_id,
s.qtyonhand,
round(obl.qtyrequiered, 4) AS qtyrequiered,
CASE
WHEN (o.qtybatchs = (0)::numeric) THEN (1)::numeric
ELSE round((obl.qtyrequiered / o.qtybatchs), 4)
END AS qtybatchsize,
round(bomqtyreserved(obl.m_product_id, obl.m_warehouse_id, (0)::numeric), 4) AS qtyreserved,
round(bomqtyavailable(obl.m_product_id, obl.m_warehouse_id, (0)::numeric), 4) AS qtyavailable,
obl.m_warehouse_id,
obl.qtybom,
obl.isqtypercentage,
round(obl.qtybatch, 4) AS qtybatch,
obl.m_attributesetinstance_id,
l.m_locator_id,
l.x,
l.y,
l.z
FROM (((pp_order_bomline obl
JOIN pp_order o ON ((o.pp_order_id = obl.pp_order_id)))
LEFT JOIN m_storage s ON ((((s.m_product_id = obl.m_product_id) AND (s.qtyonhand <> (0)::numeric)) AND (obl.m_warehouse_id = ( SELECT ld.m_warehouse_id
FROM m_locator ld
WHERE (s.m_locator_id = ld.m_locator_id))))))
LEFT JOIN m_locator l ON ((l.m_locator_id = s.m_locator_id)))
ORDER BY obl.m_product_id;