[freeside] Use of cust_main->balance_date

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


Never mind. I see the total_owed_date sub takes care of this.
  -----Original Message-----
  From: Lance Stine [mailto:lstine at ikano.com]
  Sent: Monday, April 29, 2002 10:12 AM
  To: ivan-freeside at sisd.com
  Subject: [freeside] Use of cust_main->balance_date


  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/b331376b/attachment.html


More information about the freeside-users mailing list