[ 2872841 ] RollupBillOfMaterial should check all BOM products
https://sourceforge.net/tracker/index.php?func=detail&aid=2872841&group_id=176962&atid=934929# Process parameter Product Type was using ID 1000005 which is not correct.
This commit is contained in:
parent
5f6ab2d6ef
commit
854e299643
|
@ -1,11 +1,11 @@
|
|||
-- Oct 6, 2009 9:07:20 AM EEST
|
||||
-- [ 2872841 ] RollupBillOfMaterial should check all BOM products
|
||||
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,DisplayLogic,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1899,0,53062,1000005,17,270,'ProductType',TO_DATE('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0,'@M_Product_ID@=0','EE01',0,'Y','Y','N','N','Product Type',80,TO_DATE('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,DisplayLogic,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1899,0,53062,53361,17,270,'ProductType',TO_DATE('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0,'@M_Product_ID@=0','EE01',0,'Y','Y','N','N','Product Type',80,TO_DATE('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Oct 6, 2009 9:07:20 AM EEST
|
||||
-- [ 2872841 ] RollupBillOfMaterial should check all BOM products
|
||||
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=1000005 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)
|
||||
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=53361 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)
|
||||
;
|
||||
|
||||
-- Oct 6, 2009 9:07:26 AM EEST
|
||||
|
@ -30,6 +30,6 @@ UPDATE AD_Process_Para SET DefaultValue='-1', DisplayLogic='@M_Product_ID@=0',Up
|
|||
|
||||
-- Oct 6, 2009 9:24:22 AM EEST
|
||||
-- [ 2872841 ] RollupBillOfMaterial should check all BOM products
|
||||
UPDATE AD_Process_Para SET DisplayLogic='@M_Product_ID@=0',Updated=TO_DATE('2009-10-06 09:24:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=1000005
|
||||
UPDATE AD_Process_Para SET DisplayLogic='@M_Product_ID@=0',Updated=TO_DATE('2009-10-06 09:24:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53361
|
||||
;
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
--
|
||||
-- If you already run script 592, this script will fix issues introduced, else this script does not have any effect
|
||||
delete from AD_process_para_trl t
|
||||
where exists (
|
||||
select 1 from AD_Process_para pp
|
||||
where pp.AD_process_ID=53062 and pp.ColumnName='ProductType' and pp.AD_Process_para_ID=t.AD_Process_para_ID
|
||||
and pp.AD_Process_para_ID=1000005
|
||||
)
|
||||
;
|
||||
update AD_process_para set AD_process_para_ID=53361
|
||||
where AD_process_ID=53062 and ColumnName='ProductType' and AD_Process_para_ID=1000005
|
||||
;
|
||||
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=53361
|
||||
AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
|
||||
;
|
|
@ -1,11 +1,11 @@
|
|||
-- Oct 6, 2009 9:07:20 AM EEST
|
||||
-- [ 2872841 ] RollupBillOfMaterial should check all BOM products
|
||||
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,DisplayLogic,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1899,0,53062,1000005,17,270,'ProductType',TO_TIMESTAMP('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0,'@M_Product_ID@=0','EE01',0,'Y','Y','N','N','Product Type',80,TO_TIMESTAMP('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,DisplayLogic,EntityType,FieldLength,IsActive,IsCentrallyMaintained,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,1899,0,53062,53361,17,270,'ProductType',TO_TIMESTAMP('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0,'@M_Product_ID@=0','EE01',0,'Y','Y','N','N','Product Type',80,TO_TIMESTAMP('2009-10-06 09:07:20','YYYY-MM-DD HH24:MI:SS'),0)
|
||||
;
|
||||
|
||||
-- Oct 6, 2009 9:07:20 AM EEST
|
||||
-- [ 2872841 ] RollupBillOfMaterial should check all BOM products
|
||||
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=1000005 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)
|
||||
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=53361 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)
|
||||
;
|
||||
|
||||
-- Oct 6, 2009 9:07:26 AM EEST
|
||||
|
@ -30,6 +30,6 @@ UPDATE AD_Process_Para SET DefaultValue='-1', DisplayLogic='@M_Product_ID@=0',Up
|
|||
|
||||
-- Oct 6, 2009 9:24:22 AM EEST
|
||||
-- [ 2872841 ] RollupBillOfMaterial should check all BOM products
|
||||
UPDATE AD_Process_Para SET DisplayLogic='@M_Product_ID@=0',Updated=TO_TIMESTAMP('2009-10-06 09:24:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=1000005
|
||||
UPDATE AD_Process_Para SET DisplayLogic='@M_Product_ID@=0',Updated=TO_TIMESTAMP('2009-10-06 09:24:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_Para_ID=53361
|
||||
;
|
||||
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
--
|
||||
-- If you already run script 592, this script will fix issues introduced, else this script does not have any effect
|
||||
delete from AD_process_para_trl t
|
||||
where exists (
|
||||
select 1 from AD_Process_para pp
|
||||
where pp.AD_process_ID=53062 and pp.ColumnName='ProductType' and pp.AD_Process_para_ID=t.AD_Process_para_ID
|
||||
and pp.AD_Process_para_ID=1000005
|
||||
)
|
||||
;
|
||||
update AD_process_para set AD_process_para_ID=53361
|
||||
where AD_process_ID=53062 and ColumnName='ProductType' and AD_Process_para_ID=1000005
|
||||
;
|
||||
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=53361
|
||||
AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
|
||||
;
|
Loading…
Reference in New Issue