Version 2.6.3 2007-7-30
Open Balance is not updated after a payment is completed when the payment is directly allocated to one invoice.
Start with a new BP.
Create one AP invoice for 100 and complete it. The open balance is -100.
Create an AP payment selecting the BP and the invoice just created. Complete payment. The open balance stays at -100 (should be 0).
Run "Validate Business Partner" and the open balance is correctly set to 0.
This is due to the following code in MPayment.java, completeIt method:
if (getC_BPartner_ID() != 0 && getC_Invoice_ID() == 0)
Seems to me that this should be:
if (getC_BPartner_ID() != 0)