Use of cust_main->balance_date

Lance Stine lstine at ikano.com
Mon Apr 29 09:13:13 PDT 2002


It seems subtracting the unapplied payments is causing a incorrect balance.

Say the customer owes $19.99 in cust_bill. The customer has no credits to
subtract from that amount. The customer has paid the full balance, $19.99 in
cust_pay. They should have a $0 balance. However, the
total_unapplied_payments sub will take the amount from cust_pay (19.99),
look up the same paynum in cust_bill_pay to get the identical amount, 19.99.
It will then subtract it from the cust_pay amount. The result is  0. When
nothing is subtracted from the amount in cust_bill, an incorrect balance of
$19.99 is the result.

Is this intentional? Am I completely misunderstanding the balance API?

Thanks for the clarification.
Lance Stine

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://420.am/pipermail/freeside-users/attachments/20020429/b759c850/attachment.htm


More information about the freeside-users mailing list