From 10ad4064d8f30fae63e901f5bcaf36c4fbdd830f Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 13 Jun 2018 14:33:31 +0200 Subject: [PATCH] IDEMPIERE-3651 Report Column Set=>Report Column=>User Element List1 not displaying User1_ID values / add IsActive validation --- .../i5.1/oracle/201806131433_IDEMPIERE-3651.sql | 12 ++++++++++++ .../i5.1/postgresql/201806131433_IDEMPIERE-3651.sql | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 migration/i5.1/oracle/201806131433_IDEMPIERE-3651.sql create mode 100644 migration/i5.1/postgresql/201806131433_IDEMPIERE-3651.sql diff --git a/migration/i5.1/oracle/201806131433_IDEMPIERE-3651.sql b/migration/i5.1/oracle/201806131433_IDEMPIERE-3651.sql new file mode 100644 index 0000000000..439eb5d228 --- /dev/null +++ b/migration/i5.1/oracle/201806131433_IDEMPIERE-3651.sql @@ -0,0 +1,12 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-3651 Report Column Set=>Report Column=>User Element List1 not displaying User1_ID values +-- Jun 13, 2018 2:32:06 PM CEST +UPDATE AD_Val_Rule SET Code='C_ElementValue.C_Element_ID IN +(SELECT C_Element_ID FROM C_AcctSchema_Element WHERE IsActive=''Y'' AND AD_Client_ID=@#AD_Client_ID@ AND (ElementType=''@ElementType@'' OR (''@ElementType@''=''CO'' AND ElementType=''AC'')))',Updated=TO_DATE('2018-06-13 14:32:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=258 +; + +SELECT register_migration_script('201806131433_IDEMPIERE-3651.sql') FROM dual +; + diff --git a/migration/i5.1/postgresql/201806131433_IDEMPIERE-3651.sql b/migration/i5.1/postgresql/201806131433_IDEMPIERE-3651.sql new file mode 100644 index 0000000000..f113b121ef --- /dev/null +++ b/migration/i5.1/postgresql/201806131433_IDEMPIERE-3651.sql @@ -0,0 +1,9 @@ +-- IDEMPIERE-3651 Report Column Set=>Report Column=>User Element List1 not displaying User1_ID values +-- Jun 13, 2018 2:32:06 PM CEST +UPDATE AD_Val_Rule SET Code='C_ElementValue.C_Element_ID IN +(SELECT C_Element_ID FROM C_AcctSchema_Element WHERE IsActive=''Y'' AND AD_Client_ID=@#AD_Client_ID@ AND (ElementType=''@ElementType@'' OR (''@ElementType@''=''CO'' AND ElementType=''AC'')))',Updated=TO_TIMESTAMP('2018-06-13 14:32:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=258 +; + +SELECT register_migration_script('201806131433_IDEMPIERE-3651.sql') FROM dual +; +