Rashko

Thanks a load for this.  I have been going through the code in
OrderReturnServices and other places and see that it is thorough and well
thought out.  It appears as if the UI is not calling these services in some
cases.

You are exactly right, I was using editPaymentApplications to apply the
payment to the invoice as this is how most of the other applications I have
worked with expected you to do it.

I'll have a look at this processCaptureSplitPayment service and see if I can
use its code to fix editPaymentApplications.

Thanks again

Skip

-----Original Message-----
From: Rashko Rejmer [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 13, 2007 3:56 PM
To: [email protected]
Subject: RE: Billing Accounts



Hi Skip,

I also noticed this problem and maybe this will help you. 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
that Jacopo created recently r574962 -
https://demo.hotwaxmedia.com/accounting/control/BillingAccountPayments?billi
ngAccountId=9010)
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
https://demo.hotwaxmedia.com/accounting/control/editPaymentApplications?paym
entId=demo10000)
the OrderPaymentPreference record is not updated - so BA balance is wrong.

I was willing to fix this but had no time to do it.

Regards,
Rashko Rejmer
--
View this message in context:
http://www.nabble.com/Billing-Accounts-tf4438293.html#a12665336
Sent from the OFBiz - User mailing list archive at Nabble.com.


Reply via email to