From 9e585c01805939fead908a075dfb1ca102e2b186 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 17 Feb 2016 15:03:36 +0100 Subject: [PATCH] IDEMPIERE-3027 'Closed' projects are still selectable in drop downs - integrate patch from Antoni Ten --- migration/i3.1/oracle/201602171450_IDEMPIERE-3027.sql | 11 +++++++++++ .../i3.1/postgresql/201602171450_IDEMPIERE-3027.sql | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 migration/i3.1/oracle/201602171450_IDEMPIERE-3027.sql create mode 100644 migration/i3.1/postgresql/201602171450_IDEMPIERE-3027.sql diff --git a/migration/i3.1/oracle/201602171450_IDEMPIERE-3027.sql b/migration/i3.1/oracle/201602171450_IDEMPIERE-3027.sql new file mode 100644 index 0000000000..96fa4a2364 --- /dev/null +++ b/migration/i3.1/oracle/201602171450_IDEMPIERE-3027.sql @@ -0,0 +1,11 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-3027 'Closed' projects are still selectable in drop downs +-- Feb 4, 2016 2:27:17 PM UTC +UPDATE AD_Val_Rule SET Code='C_Project.Processed=''N'' AND C_Project.IsSummary=''N'' AND (C_Project.C_BPartner_ID IS NULL OR C_Project.C_BPartner_ID=@C_BPartner_ID@ OR C_Project.C_BPartnerSR_ID=@C_BPartner_ID@)',Updated=TO_DATE('2016-02-04 14:27:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=227 +; + +SELECT register_migration_script('201602171450_IDEMPIERE-3027.sql') FROM dual +; + diff --git a/migration/i3.1/postgresql/201602171450_IDEMPIERE-3027.sql b/migration/i3.1/postgresql/201602171450_IDEMPIERE-3027.sql new file mode 100644 index 0000000000..803a81cdd8 --- /dev/null +++ b/migration/i3.1/postgresql/201602171450_IDEMPIERE-3027.sql @@ -0,0 +1,8 @@ +-- IDEMPIERE-3027 'Closed' projects are still selectable in drop downs +-- Feb 4, 2016 2:27:17 PM UTC +UPDATE AD_Val_Rule SET Code='C_Project.Processed=''N'' AND C_Project.IsSummary=''N'' AND (C_Project.C_BPartner_ID IS NULL OR C_Project.C_BPartner_ID=@C_BPartner_ID@ OR C_Project.C_BPartnerSR_ID=@C_BPartner_ID@)',Updated=TO_TIMESTAMP('2016-02-04 14:27:17','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=227 +; + +SELECT register_migration_script('201602171450_IDEMPIERE-3027.sql') FROM dual +; +