From 78a1fdddb86887f2466180ce4c9342bc550c5238 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sun, 27 Mar 2022 04:06:17 +0200 Subject: [PATCH] IDEMPIERE-4669 Adding RfQ responses manually is prohibited, because the field for the RfQ is read only (#1264) IDEMPIERE-4669 #resolve --- .../i9/oracle/202203250046_IDEMPIERE-4669.sql | 18 ++++++++++++++++++ .../postgresql/202203250046_IDEMPIERE-4669.sql | 15 +++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 migration/i9/oracle/202203250046_IDEMPIERE-4669.sql create mode 100644 migration/i9/postgresql/202203250046_IDEMPIERE-4669.sql diff --git a/migration/i9/oracle/202203250046_IDEMPIERE-4669.sql b/migration/i9/oracle/202203250046_IDEMPIERE-4669.sql new file mode 100644 index 0000000000..bac29e611f --- /dev/null +++ b/migration/i9/oracle/202203250046_IDEMPIERE-4669.sql @@ -0,0 +1,18 @@ +-- IDEMPIERE-4669 Adding RfQ responses manually is prohibited, because the field for the RfQ is read only +SELECT register_migration_script('202203250046_IDEMPIERE-4669.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Mar 25, 2022, 12:46:06 AM CET +UPDATE AD_Field SET IsReadOnly='N', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@C_RfQ_ID@>0', IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-03-25 00:46:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9362 +; + +-- Mar 25, 2022, 12:46:33 AM CET +UPDATE AD_Field SET IsReadOnly='N', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@C_RfQLine_ID@>0', IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-03-25 00:46:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9389 +; + +-- Mar 25, 2022, 12:47:00 AM CET +UPDATE AD_Field SET IsReadOnly='N', AD_Reference_ID=19, ReadOnlyLogic='@C_RfQLineQty_ID@>0',Updated=TO_TIMESTAMP('2022-03-25 00:47:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9407 +; + diff --git a/migration/i9/postgresql/202203250046_IDEMPIERE-4669.sql b/migration/i9/postgresql/202203250046_IDEMPIERE-4669.sql new file mode 100644 index 0000000000..72345490ea --- /dev/null +++ b/migration/i9/postgresql/202203250046_IDEMPIERE-4669.sql @@ -0,0 +1,15 @@ +-- IDEMPIERE-4669 Adding RfQ responses manually is prohibited, because the field for the RfQ is read only +SELECT register_migration_script('202203250046_IDEMPIERE-4669.sql') FROM dual; + +-- Mar 25, 2022, 12:46:06 AM CET +UPDATE AD_Field SET IsReadOnly='N', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@C_RfQ_ID@>0', IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-03-25 00:46:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9362 +; + +-- Mar 25, 2022, 12:46:33 AM CET +UPDATE AD_Field SET IsReadOnly='N', AD_Reference_Value_ID=NULL, AD_Val_Rule_ID=NULL, ReadOnlyLogic='@C_RfQLine_ID@>0', IsToolbarButton=NULL,Updated=TO_TIMESTAMP('2022-03-25 00:46:33','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9389 +; + +-- Mar 25, 2022, 12:47:00 AM CET +UPDATE AD_Field SET IsReadOnly='N', AD_Reference_ID=19, ReadOnlyLogic='@C_RfQLineQty_ID@>0',Updated=TO_TIMESTAMP('2022-03-25 00:47:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9407 +; +