Merge pull request #1299 from nabinhait/hotfix

Accounts Receivable fix for partial payment in pos
This commit is contained in:
Nabin Hait 2014-01-09 02:25:12 -08:00
commit 5411ece766

View File

@ -42,7 +42,7 @@ class AccountsReceivableReport(object):
for gle in self.get_entries_till(self.filters.report_date):
if self.is_receivable(gle, future_vouchers):
outstanding_amount = self.get_outstanding_amount(gle, self.filters.report_date)
if abs(outstanding_amount) > 0.01:
if abs(outstanding_amount) > 0.0:
due_date = self.get_due_date(gle)
invoiced_amount = gle.debit if (gle.debit > 0) else 0
payment_received = invoiced_amount - outstanding_amount