fixed views

This commit is contained in:
vpj-cd 2009-05-21 21:34:33 +00:00
parent 5d1a38bb16
commit 2e18141da5
2 changed files with 10 additions and 6 deletions

View File

@ -108,7 +108,7 @@ FROM PP_Order o
INNER JOIN AD_OrgInfo oi ON (o.AD_Org_ID=oi.AD_Org_ID)
LEFT OUTER JOIN AD_User u ON (o.Planner_ID=u.AD_User_ID);
DROP VIEW PP_Order_Header_v;
CREATE OR REPLACE VIEW PP_Order_Header_v
AS
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
@ -213,7 +213,8 @@ FROM PP_Order o
INNER JOIN M_Warehouse wh ON (o.M_Warehouse_ID=wh.M_Warehouse_ID)
INNER JOIN AD_OrgInfo oi ON (o.AD_Org_ID=oi.AD_Org_ID)
LEFT OUTER JOIN AD_User u ON (o.Planner_ID=u.AD_User_ID);
DROP VIEW PP_Product_BOMLine_v;
CREATE VIEW PP_Product_BOMLine_v AS
SELECT
feature ,
@ -249,7 +250,8 @@ SELECT
validto
FROM PP_Product_BOMLine bl
INNER JOIN PP_Product_BOMLine_Trl blt ON (blt.PP_Product_BOMLine_ID=bl.PP_Product_BOMLine_ID);
DROP VIEW PP_Product_BOMLine_vt;
CREATE VIEW PP_Product_BOMLine_vt AS
SELECT
feature ,

View File

@ -108,7 +108,7 @@ FROM PP_Order o
INNER JOIN AD_OrgInfo oi ON (o.AD_Org_ID=oi.AD_Org_ID)
LEFT OUTER JOIN AD_User u ON (o.Planner_ID=u.AD_User_ID);
DROP VIEW PP_Order_Header_v;
CREATE OR REPLACE VIEW PP_Order_Header_v
AS
SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy,
@ -213,7 +213,8 @@ FROM PP_Order o
INNER JOIN M_Warehouse wh ON (o.M_Warehouse_ID=wh.M_Warehouse_ID)
INNER JOIN AD_OrgInfo oi ON (o.AD_Org_ID=oi.AD_Org_ID)
LEFT OUTER JOIN AD_User u ON (o.Planner_ID=u.AD_User_ID);
DROP VIEW PP_Product_BOMLine_v;
CREATE VIEW PP_Product_BOMLine_v AS
SELECT
feature ,
@ -249,7 +250,8 @@ SELECT
validto
FROM PP_Product_BOMLine bl
INNER JOIN PP_Product_BOMLine_Trl blt ON (blt.PP_Product_BOMLine_ID=bl.PP_Product_BOMLine_ID);
DROP VIEW PP_Product_BOMLine_vt;
CREATE VIEW PP_Product_BOMLine_vt AS
SELECT
feature ,