From c2c377131bbd7ab00142083a2f100be37a74609b Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Sat, 21 Jun 2008 00:03:26 +0000 Subject: [PATCH] [ 1999230 ] Add Safety Stock in Create Planning Data http://sourceforge.net/tracker/index.php?func=detail&aid=1999230&group_id=176962&atid=879335 --- .../205_FR1999230_AddSafetyStock.sql | 21 +++++++++++++++++ .../205_FR1999230_AddSafetyStock.sql | 23 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 migration/351a-trunk/205_FR1999230_AddSafetyStock.sql create mode 100644 migration/351a-trunk/postgresql/205_FR1999230_AddSafetyStock.sql diff --git a/migration/351a-trunk/205_FR1999230_AddSafetyStock.sql b/migration/351a-trunk/205_FR1999230_AddSafetyStock.sql new file mode 100644 index 0000000000..bf7e08aa7a --- /dev/null +++ b/migration/351a-trunk/205_FR1999230_AddSafetyStock.sql @@ -0,0 +1,21 @@ +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53354,0,53010,53184,29,'SafetyStock',TO_DATE('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0,'Safety Stock Qty','EE01',22,'Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.','Y','Y','N','N','Safety Stock Qty',130,TO_DATE('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53184 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID) +; + +-- Jun 20, 2008 6:34:14 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET SeqNo=105,Updated=TO_DATE('2008-06-20 18:34:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53184 +; + +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ddnetworkdistribution_ppproduc; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT adworkflow_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT mwarehouse_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT planner_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ppproductbom_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT sresource_ppproductplanning; \ No newline at end of file diff --git a/migration/351a-trunk/postgresql/205_FR1999230_AddSafetyStock.sql b/migration/351a-trunk/postgresql/205_FR1999230_AddSafetyStock.sql new file mode 100644 index 0000000000..c34cfd077a --- /dev/null +++ b/migration/351a-trunk/postgresql/205_FR1999230_AddSafetyStock.sql @@ -0,0 +1,23 @@ + +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,53354,0,53010,53184,29,'SafetyStock',TO_TIMESTAMP('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0,'Safety Stock Qty','EE01',22,'Safety stock is defined as extra units of inventory carried as protection against possible stockouts. It is held when an organization cannot accurately predict demand and/or lead time for the product.','Y','Y','N','N','Safety Stock Qty',130,TO_TIMESTAMP('2008-06-20 18:33:47','YYYY-MM-DD HH24:MI:SS'),0) +; + +-- Jun 20, 2008 6:33:56 PM CDT +-- Fixed Libero Issue +INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Process_Para_ID=53184 AND EXISTS (SELECT * FROM AD_Process_Para_Trl tt WHERE tt.AD_Language!=l.AD_Language OR tt.AD_Process_Para_ID!=t.AD_Process_Para_ID) +; + +-- Jun 20, 2008 6:34:14 PM CDT +-- Fixed Libero Issue +UPDATE AD_Process_Para SET SeqNo=105,Updated=TO_TIMESTAMP('2008-06-20 18:34:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53184 +; + + +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ddnetworkdistribution_ppproduc; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT adworkflow_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT mwarehouse_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT planner_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT ppproductbom_ppproductplanning; +ALTER TABLE PP_Product_Planning DROP CONSTRAINT sresource_ppproductplanning;