Skip to content

Commit

Permalink
Merge pull request #38359 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-38354

refactor: handle rounding loss on AR/AP reports (backport #38354)
  • Loading branch information
ruthra-kumar committed Nov 27, 2023
2 parents 4699887 + 8564d58 commit 7385db0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ def build_data(self):

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:
Expand Down

0 comments on commit 7385db0

Please sign in to comment.