Skip to content

Commit

Permalink
refactor: handle rounding loss on AR/AP reports
Browse files Browse the repository at this point in the history
(cherry picked from commit 592ce45)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Nov 27, 2023
1 parent 4699887 commit 8564d58
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 8564d58

Please sign in to comment.