Problems with outgoing payments on Billing Accounts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Problems with outgoing payments on Billing Accounts

alexander.reelsen@lusini.com
Hi there,

we are currently trying to implement refunding of payments on billing accounts.

When applying a too high payment to a billing account (perhaps because the customer accidentally paid too much), I want to create a new outgoing payment on the billing account, which should be refunded. However outgoing payments seem to treated the same as incoming payments and raise the account balance, which is not intended.

Problem 1: The "checkInvoicePaymentApplications" service is in InvoiceServices.checkInvoicePaymentApplications() simply adds up all payment applications, regardless whether they are sent or received. (around line 2147 and following)
Problem 2: BillingAccountWorker.getBillingAccountBalance() does the same.

So basic question: Is this a wrong approach and we are not following the ofbiz logic or is this simply not implemented yet?

Any hints welcome to this one.


--Alexander

_____________________________________________________

Lusini GmbH
Alexander Reelsen, Research & Development
Adams-Lehmann-Straße 44, 80797 München

Telefon +49-89-416 170 10
Telefax +49-89-416 170 190
E-Mail [hidden email]

Sitz der Gesellschaft: München,  HRB 188366,
Amtsgericht München, Geschäftsführer: Markus Bohl
USt IdNr. DE 270565360, Steuernr. 152/131/90056
_____________________________________________________