Merge pull request #1299 from nabinhait/hotfix
Accounts Receivable fix for partial payment in pos
This commit is contained in:
commit
5411ece766
@ -42,7 +42,7 @@ class AccountsReceivableReport(object):
|
|||||||
for gle in self.get_entries_till(self.filters.report_date):
|
for gle in self.get_entries_till(self.filters.report_date):
|
||||||
if self.is_receivable(gle, future_vouchers):
|
if self.is_receivable(gle, future_vouchers):
|
||||||
outstanding_amount = self.get_outstanding_amount(gle, self.filters.report_date)
|
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)
|
due_date = self.get_due_date(gle)
|
||||||
invoiced_amount = gle.debit if (gle.debit > 0) else 0
|
invoiced_amount = gle.debit if (gle.debit > 0) else 0
|
||||||
payment_received = invoiced_amount - outstanding_amount
|
payment_received = invoiced_amount - outstanding_amount
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user