Merge pull request #38359 from frappe/mergify/bp/version-15-hotfix/pr-38354

refactor: handle rounding loss on AR/AP reports (backport #38354)
This commit is contained in:
ruthra kumar 2023-11-27 12:16:13 +05:30 committed by GitHub
commit 7385db0cce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: