Affects Version/s: None
Fix Version/s: None
Sprint:Bug Crush Event - 21/2/2015
From a mail by Rashko Rejmer with subject "RE: Billing Accounts" posted to the user ML on 2007-09-14:
"If you create order that is payed with billing account(BA) then in OrderPaymentPreference
entity is created record with status PAYMENT_NOT_RECEIVED. The account
balance is calculated considering this entries and payments that are applied
to the billing account, but are not applied to the invoice.
Everything is OK if you create order, then invoice it, then create payment
and apply it only to the BA(the best UI is throught the new form and service
created recently in r574962 -
and then use the capture ability from the BA -> invoices screen to apply
this payment to the invoice too. In that case the the BA balance behaves as
it should. This is because capture ability invokes the service
"processCaptureSplitPayment" that takes care to update the status of the
OrderPaymentPreference entries(changes it to PAYMENT_RECEIVED).
The problem is if you apply payments to the invoice from another UI(E.g
the OrderPaymentPreference record is not updated - so BA balance is wrong."