core-jgi/org.adempiere.ui
Carlos Ruiz 460f7116a2
IDEMPIERE-4567 Resetting payment allocation to a charge leaves wrong … (#414)
* IDEMPIERE-4567 Resetting payment allocation to a charge leaves wrong BP Balance

MAllocationHdr.updateBP was broken, the form Payment Allocation worked just because it was calling bpartner.setTotalOpenBalance() at the end
so, I refactored the MAllocationHdr.updateBP and before/afterDelete to call bpartner.setTotalOpenBalance instead if the broken algorithm

Unit test added for allocating and deleting a customer invoice, a vendor invoice, and a charge

* IDEMPIERE-4567 Resetting payment allocation to a charge leaves wrong BP Balance

- Fix peer review changes requested by @hengsin
- Detected double call to bpartner.setTotalOpenBalance in WAllocation
- Detected some business partners in GardenWorld with wrong TotalOpenBalance or SO_CreditUsed, added migration script to fix it, it made more complicate to write unit tests as the data was wrong
2020-11-26 17:08:05 +08:00
..
.settings IDEMPIERE-4314:eclipse project setting independent JDK (#90) 2020-06-01 11:30:00 +08:00
META-INF IDEMPIERE-4521 Release 8.1 - RC 2020-11-03 21:59:12 +01:00
src/org/compiere IDEMPIERE-4567 Resetting payment allocation to a charge leaves wrong … (#414) 2020-11-26 17:08:05 +08:00
.classpath IDEMPIERE-4314:eclipse project setting independent JDK (#90) 2020-06-01 11:30:00 +08:00
.project IDEMPIERE-3531:add maven tycho configuration 2018-02-10 16:42:06 +07:00
build.properties IDEMPIERE-3798:Move iDempiere default branch to openjdk 10 (update lib) 2018-10-23 09:36:53 +07:00
pom.xml IDEMPIERE-4521 Release 8.1 - RC 2020-11-03 21:59:12 +01:00