From e51ad389e70a6c53eba518de241992b5aaf30ec5 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 21 Mar 2016 23:41:04 +0100 Subject: [PATCH] IDEMPIERE-3052 Advanced Search on doctype on invoices or orders shows all the doctypes --- migration/i3.1/oracle/201603212338_IDEMPIERE-3052.sql | 11 +++++++++++ .../i3.1/postgresql/201603212338_IDEMPIERE-3052.sql | 8 ++++++++ 2 files changed, 19 insertions(+) create mode 100644 migration/i3.1/oracle/201603212338_IDEMPIERE-3052.sql create mode 100644 migration/i3.1/postgresql/201603212338_IDEMPIERE-3052.sql diff --git a/migration/i3.1/oracle/201603212338_IDEMPIERE-3052.sql b/migration/i3.1/oracle/201603212338_IDEMPIERE-3052.sql new file mode 100644 index 0000000000..e30068b75e --- /dev/null +++ b/migration/i3.1/oracle/201603212338_IDEMPIERE-3052.sql @@ -0,0 +1,11 @@ +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- IDEMPIERE-3052 Advanced Search on doctype on invoices or orders shows all the doctypes +-- Mar 21, 2016 11:38:20 PM CET +UPDATE AD_Val_Rule SET Code='C_DocType.DocBaseType IN (''SOO'', ''POO'') AND C_DocType.IsSOTrx=''@IsSOTrx@'' AND COALESCE(C_DocType.DocSubTypeSO,'' '')<>''RM'' AND C_DocType.AD_Client_ID=@#AD_Client_ID@',Updated=TO_DATE('2016-03-21 23:38:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=133 +; + +SELECT register_migration_script('201603212338_IDEMPIERE-3052.sql') FROM dual +; + diff --git a/migration/i3.1/postgresql/201603212338_IDEMPIERE-3052.sql b/migration/i3.1/postgresql/201603212338_IDEMPIERE-3052.sql new file mode 100644 index 0000000000..aa7aae1c85 --- /dev/null +++ b/migration/i3.1/postgresql/201603212338_IDEMPIERE-3052.sql @@ -0,0 +1,8 @@ +-- IDEMPIERE-3052 Advanced Search on doctype on invoices or orders shows all the doctypes +-- Mar 21, 2016 11:38:20 PM CET +UPDATE AD_Val_Rule SET Code='C_DocType.DocBaseType IN (''SOO'', ''POO'') AND C_DocType.IsSOTrx=''@IsSOTrx@'' AND COALESCE(C_DocType.DocSubTypeSO,'' '')<>''RM'' AND C_DocType.AD_Client_ID=@#AD_Client_ID@',Updated=TO_TIMESTAMP('2016-03-21 23:38:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=133 +; + +SELECT register_migration_script('201603212338_IDEMPIERE-3052.sql') FROM dual +; +