Merge pull request #38354 from ruthra-kumar/handle_rounding_loss_on_ar_ap

refactor: handle rounding loss on AR/AP reports
This commit is contained in:
ruthra kumar
2023-11-27 11:51:46 +05:30
committed by GitHub

View File

@@ -285,8 +285,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: