diff --git a/migration/353a-trunk/oracle/470_BF2596202_Views.sql b/migration/353a-trunk/oracle/470_BF2596202_Views.sql index 15d0cb5cd0..8d16f89246 100644 --- a/migration/353a-trunk/oracle/470_BF2596202_Views.sql +++ b/migration/353a-trunk/oracle/470_BF2596202_Views.sql @@ -107,9 +107,9 @@ 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 +--DROP VIEW PP_Order_Header_v; +--/ +CREATE OR REPLACE VIEW PP_Order_Header_vt AS SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy, dt.AD_Language, diff --git a/migration/353a-trunk/oracle/488_RF2804811_Co_Product.sql b/migration/353a-trunk/oracle/488_RF2804811_Co_Product.sql new file mode 100644 index 0000000000..5711c69e45 --- /dev/null +++ b/migration/353a-trunk/oracle/488_RF2804811_Co_Product.sql @@ -0,0 +1,20 @@ +-- Jun 11, 2009 12:06:07 PM ECT +-- Manufacturing By Product +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53481,53225,TO_DATE('2009-06-11 12:06:05','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Co-Product',TO_DATE('2009-06-11 12:06:05','YYYY-MM-DD HH24:MI:SS'),0,'CP') +; + +-- Jun 11, 2009 12:06:07 PM ECT +-- Manufacturing By Product +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53481 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jun 11, 2009 12:06:16 PM ECT +-- Manufacturing By Product +UPDATE AD_Ref_List SET Name='By-Product',Updated=TO_DATE('2009-06-11 12:06:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53257 +; + +-- Jun 11, 2009 12:06:16 PM ECT +-- Manufacturing By Product +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53257 +; + diff --git a/migration/353a-trunk/postgresql/470_BF2596202_Views.sql b/migration/353a-trunk/postgresql/470_BF2596202_Views.sql index c3b1ac8bed..526c61bb82 100644 --- a/migration/353a-trunk/postgresql/470_BF2596202_Views.sql +++ b/migration/353a-trunk/postgresql/470_BF2596202_Views.sql @@ -87,7 +87,8 @@ CASE WHEN o.qtybatchs = 0 THEN 1 ELSE round(obl.qtyrequiered / o.qtybatchs, 4) E FROM PP_Order_BOMLine obl INNER JOIN PP_Order o ON (o.PP_Order_ID=obl.PP_Order_ID) LEFT JOIN PP_Order_BOMLine_Trl oblt ON (oblt.PP_Order_BOMLine_ID=obl.PP_Order_BOMLine_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, @@ -108,8 +109,8 @@ 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 +--DROP VIEW PP_Order_Header_vt; +CREATE OR REPLACE VIEW PP_Order_Header_vt AS SELECT o.AD_Client_ID, o.AD_Org_ID, o.IsActive, o.Created, o.CreatedBy, o.Updated, o.UpdatedBy, dt.AD_Language, @@ -214,7 +215,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_Product_BOMLine_v; +--DROP VIEW PP_Product_BOMLine_v; CREATE VIEW PP_Product_BOMLine_v AS SELECT feature , @@ -251,7 +252,7 @@ SELECT 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; + --DROP VIEW PP_Product_BOMLine_vt; CREATE VIEW PP_Product_BOMLine_vt AS SELECT feature , diff --git a/migration/353a-trunk/postgresql/488_RF2804811_Co_Product.sql b/migration/353a-trunk/postgresql/488_RF2804811_Co_Product.sql new file mode 100644 index 0000000000..9d177bd319 --- /dev/null +++ b/migration/353a-trunk/postgresql/488_RF2804811_Co_Product.sql @@ -0,0 +1,20 @@ +-- Jun 11, 2009 12:06:07 PM ECT +-- Manufacturing By Product +INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,53481,53225,TO_TIMESTAMP('2009-06-11 12:06:05','YYYY-MM-DD HH24:MI:SS'),0,'EE01','Y','Co-Product',TO_TIMESTAMP('2009-06-11 12:06:05','YYYY-MM-DD HH24:MI:SS'),0,'CP') +; + +-- Jun 11, 2009 12:06:07 PM ECT +-- Manufacturing By Product +INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Ref_List_ID=53481 AND EXISTS (SELECT * FROM AD_Ref_List_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Ref_List_ID!=t.AD_Ref_List_ID) +; + +-- Jun 11, 2009 12:06:16 PM ECT +-- Manufacturing By Product +UPDATE AD_Ref_List SET Name='By-Product',Updated=TO_TIMESTAMP('2009-06-11 12:06:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Ref_List_ID=53257 +; + +-- Jun 11, 2009 12:06:16 PM ECT +-- Manufacturing By Product +UPDATE AD_Ref_List_Trl SET IsTranslated='N' WHERE AD_Ref_List_ID=53257 +; +