Login  Register

Re: Accounts Receivable

Posted by Jacopo Cappellato on Nov 01, 2007; 11:34am
URL: http://ofbiz.116.s1.nabble.com/Accounts-Receivable-tp184969p184975.html

Hi Scott,

Scott Gray wrote:
> Hi Jacopo
>
> I decided to have a look at this stuff and it doesn't make sense to me
> why we have the billingAccountId on PaymentApplication rather than on
> Payment itself?

I agree with you that having the billingAccountId in the Payment entity
would have made things simpler. I did not design this, it was already
there when I've refactored/fixed the billing account processes.
However, having the billingAccountId in the PaymentApplication improve
the flexibility: I could receive a Payment and use one part of it to pay
an invoice (not associated to a billing account) and use the remaining
to 'fill' a billing account.

Jacopo

>  It seems like the logic is pretty much the same
> except we're doing it in a roundabout sort of way by creating a
> PaymentApplication with null invoiceId just to maintain the link.
>
> Thanks
> Scott
>