Skip to content

Commit

Permalink
fix: add revaluation journal filter in Payable report
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Nov 16, 2023
1 parent ee29526 commit 7db1127
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions erpnext/accounts/report/accounts_payable/accounts_payable.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ frappe.query_reports["Accounts Payable"] = {
"label": __("In Party Currency"),
"fieldtype": "Check",
},
{
"fieldname": "for_revaluation_journals",
"label": __("Revaluation Journals"),
"fieldtype": "Check",
},
{
"fieldname": "ignore_accounts",
"label": __("Group by Voucher"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,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) >= 1.0 / 10**self.currency_precision) or (
(abs(row.outstanding_in_account_currency) >= 1.0 / 10**self.currency_precision)
):
must_consider = True
else:
Expand Down

0 comments on commit 7db1127

Please sign in to comment.