fix: incorrect outstanding amount shwoing in the AP/AR report

This commit is contained in:
Rohit Waghchaure 2019-12-17 12:44:19 +05:30
parent 60592e9d43
commit 0f583b8c5a

View File

@ -171,7 +171,7 @@ class ReceivablePayableReport(object):
row.outstanding = flt(row.invoiced - row.paid - row.credit_note, self.currency_precision)
row.invoice_grand_total = row.invoiced
if abs(row.outstanding) > 0.1/10 ** self.currency_precision:
if abs(row.outstanding) > 1.0/10 ** self.currency_precision:
# non-zero oustanding, we must consider this row
if self.is_invoice(row) and self.filters.based_on_payment_terms: