IDEMPIERE-5683 Fix broken test (#1826)

* IDEMPIERE-5683 Fix broken test

* - Fix also MTest test leaving records in the database

* Revert "- Fix also MTest test leaving records in the database"

This reverts commit 39005e5e87e96ee3f4433ebb3567add8d1b0a62c.
This commit is contained in:
Carlos Ruiz 2023-05-06 14:47:51 +02:00 committed by GitHub
parent 8bb0d55c90
commit 9372743735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -242,6 +242,7 @@ public class PaySelectFormTest extends AbstractTestCase {
hdr.deleteEx(true);
}
DB.executeUpdateEx("UPDATE C_Invoice SET C_Payment_ID=NULL WHERE C_Payment_ID=?", new Object[] {payment.get_ID()}, null);
DB.executeUpdateEx("DELETE FROM Fact_Acct WHERE AD_Table_ID=? AND Record_ID=?", new Object[] {MPayment.Table_ID, payment.get_ID()}, null);
payment.deleteEx(true);
}
}
@ -264,6 +265,7 @@ public class PaySelectFormTest extends AbstractTestCase {
MAllocationHdr hdr = new MAllocationHdr(Env.getCtx(), i, null);
hdr.deleteEx(true);
}
DB.executeUpdateEx("DELETE FROM Fact_Acct WHERE AD_Table_ID=? AND Record_ID=?", new Object[] {MInvoice.Table_ID, invoice.get_ID()}, null);
invoice.deleteEx(true);
}
}