From db1d42ab2d63bec91d50f30f7c0f0b202bd5819b Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 6 Sep 2016 14:58:33 +0200 Subject: [PATCH] IDEMPIERE-2668 Exclude Locators for Demand Operations / different approach to make reservation locator mandatory - previous approach didn't allow to add new warehouses --- .../i3.1/oracle/201609061457_IDEMPIERE-2668.sql | 15 +++++++++++++++ .../postgresql/201609061457_IDEMPIERE-2668.sql | 12 ++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 migration/i3.1/oracle/201609061457_IDEMPIERE-2668.sql create mode 100644 migration/i3.1/postgresql/201609061457_IDEMPIERE-2668.sql diff --git a/migration/i3.1/oracle/201609061457_IDEMPIERE-2668.sql b/migration/i3.1/oracle/201609061457_IDEMPIERE-2668.sql new file mode 100644 index 0000000000..d751558e9f --- /dev/null +++ b/migration/i3.1/oracle/201609061457_IDEMPIERE-2668.sql @@ -0,0 +1,15 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-2668 Exclude Locators for Demand Operations +-- Sep 6, 2016 1:55:35 PM GMT+01:00 +UPDATE AD_Field SET IsMandatory=NULL, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_DATE('2016-09-06 13:55:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200649 +; + +-- Sep 6, 2016 1:55:56 PM GMT+01:00 +UPDATE AD_Field SET AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, MandatoryLogic='@M_Warehouse_ID@>0', IsToolbarButton=NULL,Updated=TO_DATE('2016-09-06 13:55:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200649 +; + +SELECT register_migration_script('201609061457_IDEMPIERE-2668.sql') FROM dual +; + diff --git a/migration/i3.1/postgresql/201609061457_IDEMPIERE-2668.sql b/migration/i3.1/postgresql/201609061457_IDEMPIERE-2668.sql new file mode 100644 index 0000000000..a461a7d9a9 --- /dev/null +++ b/migration/i3.1/postgresql/201609061457_IDEMPIERE-2668.sql @@ -0,0 +1,12 @@ +-- IDEMPIERE-2668 Exclude Locators for Demand Operations +-- Sep 6, 2016 1:55:35 PM GMT+01:00 +UPDATE AD_Field SET IsMandatory=NULL, AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2016-09-06 13:55:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200649 +; + +-- Sep 6, 2016 1:55:56 PM GMT+01:00 +UPDATE AD_Field SET AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, MandatoryLogic='@M_Warehouse_ID@>0', IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2016-09-06 13:55:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200649 +; + +SELECT register_migration_script('201609061457_IDEMPIERE-2668.sql') FROM dual +; +