refactor: handle rounding loss on AR/AP reports

(cherry picked from commit 592ce45da7659dcf4ca148f5924dbe0d783956bf)
This commit is contained in:
ruthra kumar 2023-11-27 08:51:22 +05:30 committed by Mergify
parent 4699887f1c
commit 8564d58afe

View File

@ -281,8 +281,8 @@ class ReceivablePayableReport(object):
must_consider = False
if self.filters.get("for_revaluation_journals"):
if (abs(row.outstanding) > 1.0 / 10**self.currency_precision) or (
(abs(row.outstanding_in_account_currency) > 1.0 / 10**self.currency_precision)
if (abs(row.outstanding) > 0.0 / 10**self.currency_precision) or (
(abs(row.outstanding_in_account_currency) > 0.0 / 10**self.currency_precision)
):
must_consider = True
else: