From 3177c05b51e86e913e69a1dfc1d5a7e4cb521225 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 7 Feb 2022 10:17:59 +0100 Subject: [PATCH] IDEMPIERE-4297 Improve test data / fix some wrong data in GardenWorld seed (#1162) Co-authored-by: Chuck Boecking --- .../i9/oracle/202202061544_IDEMPIERE-4297.sql | 17 +++++++++++++++++ .../postgresql/202202061544_IDEMPIERE-4297.sql | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 migration/i9/oracle/202202061544_IDEMPIERE-4297.sql create mode 100644 migration/i9/postgresql/202202061544_IDEMPIERE-4297.sql diff --git a/migration/i9/oracle/202202061544_IDEMPIERE-4297.sql b/migration/i9/oracle/202202061544_IDEMPIERE-4297.sql new file mode 100644 index 0000000000..a66fbc1e1b --- /dev/null +++ b/migration/i9/oracle/202202061544_IDEMPIERE-4297.sql @@ -0,0 +1,17 @@ +update c_payment +set C_BPartner_ID=112, isallocated='N' +where c_payment_id = 101; + +delete from c_allocationline +where C_AllocationHdr_ID=102; + +delete from c_allocationhdr +where C_AllocationHdr_ID=102; + +update c_bankaccount ba +set currentbalance = (SELECT sum(statementdifference) FROM c_bankstatement bs WHERE bs.c_bankaccount_id=ba.c_bankaccount_id AND bs.processed='Y') +where C_BankAccount_ID=100; + +SELECT register_migration_script('202202061544_IDEMPIERE-4297.sql') FROM dual +; + diff --git a/migration/i9/postgresql/202202061544_IDEMPIERE-4297.sql b/migration/i9/postgresql/202202061544_IDEMPIERE-4297.sql new file mode 100644 index 0000000000..a66fbc1e1b --- /dev/null +++ b/migration/i9/postgresql/202202061544_IDEMPIERE-4297.sql @@ -0,0 +1,17 @@ +update c_payment +set C_BPartner_ID=112, isallocated='N' +where c_payment_id = 101; + +delete from c_allocationline +where C_AllocationHdr_ID=102; + +delete from c_allocationhdr +where C_AllocationHdr_ID=102; + +update c_bankaccount ba +set currentbalance = (SELECT sum(statementdifference) FROM c_bankstatement bs WHERE bs.c_bankaccount_id=ba.c_bankaccount_id AND bs.processed='Y') +where C_BankAccount_ID=100; + +SELECT register_migration_script('202202061544_IDEMPIERE-4297.sql') FROM dual +; +