* 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 |
||
|---|---|---|
| .. | ||
| .settings | ||
| META-INF | ||
| src/org/compiere | ||
| .classpath | ||
| .project | ||
| build.properties | ||
| pom.xml | ||