From 4358d228e6d8e0113efba2b4f76d049f0609b992 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 13 Dec 2023 02:06:00 +0100 Subject: [PATCH] IDEMPIERE-5954 Payment Info Window failing on Payments into Batch > Lines (#2136) --- migration/iD10/oracle/202312111654_IDEMPIERE-5954.sql | 10 ++++++++++ .../iD10/postgresql/202312111654_IDEMPIERE-5954.sql | 7 +++++++ 2 files changed, 17 insertions(+) create mode 100644 migration/iD10/oracle/202312111654_IDEMPIERE-5954.sql create mode 100644 migration/iD10/postgresql/202312111654_IDEMPIERE-5954.sql diff --git a/migration/iD10/oracle/202312111654_IDEMPIERE-5954.sql b/migration/iD10/oracle/202312111654_IDEMPIERE-5954.sql new file mode 100644 index 0000000000..d60e5006cd --- /dev/null +++ b/migration/iD10/oracle/202312111654_IDEMPIERE-5954.sql @@ -0,0 +1,10 @@ +-- IDEMPIERE-5954 Payment Info Window failing on Payments into Batch > Lines +SELECT register_migration_script('202312111654_IDEMPIERE-5954.sql') FROM dual; + +SET SQLBLANKLINES ON +SET DEFINE OFF + +-- Dec 11, 2023, 4:54:28 PM CET +UPDATE AD_Val_Rule SET Code='C_Payment.IsReconciled=''N'' AND C_Payment.TrxType <> ''X'' AND (SELECT COALESCE(pi.C_DepositBatch_ID,0) FROM C_Payment pi WHERE pi.C_Payment_ID=C_Payment.C_Payment_ID)=0 AND C_Payment.C_DocType_ID=@C_DocType_ID@',Updated=TO_TIMESTAMP('2023-12-11 16:54:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200039 +; + diff --git a/migration/iD10/postgresql/202312111654_IDEMPIERE-5954.sql b/migration/iD10/postgresql/202312111654_IDEMPIERE-5954.sql new file mode 100644 index 0000000000..eae7aeab89 --- /dev/null +++ b/migration/iD10/postgresql/202312111654_IDEMPIERE-5954.sql @@ -0,0 +1,7 @@ +-- IDEMPIERE-5954 Payment Info Window failing on Payments into Batch > Lines +SELECT register_migration_script('202312111654_IDEMPIERE-5954.sql') FROM dual; + +-- Dec 11, 2023, 4:54:28 PM CET +UPDATE AD_Val_Rule SET Code='C_Payment.IsReconciled=''N'' AND C_Payment.TrxType <> ''X'' AND (SELECT COALESCE(pi.C_DepositBatch_ID,0) FROM C_Payment pi WHERE pi.C_Payment_ID=C_Payment.C_Payment_ID)=0 AND C_Payment.C_DocType_ID=@C_DocType_ID@',Updated=TO_TIMESTAMP('2023-12-11 16:54:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Val_Rule_ID=200039 +; +