Skip to content

Commit

Permalink
fix: Filter fixes in Accounts Payable report
Browse files Browse the repository at this point in the history
(cherry picked from commit a5a73ba)
  • Loading branch information
deepeshgarg007 authored and mergify[bot] committed Oct 28, 2022
1 parent 753b2ed commit 29197dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions erpnext/accounts/report/accounts_payable/accounts_payable.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ frappe.query_reports["Accounts Payable"] = {
} else {
frappe.query_report.set_filter_value('tax_id', "");
}

frappe.query_report.refresh();
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def prepare_conditions(self):

self.add_accounting_dimensions_filters()

def get_cost_center_conditions(self, conditions):
def get_cost_center_conditions(self):
lft, rgt = frappe.db.get_value("Cost Center", self.filters.cost_center, ["lft", "rgt"])
cost_center_list = [
center.name
Expand Down

0 comments on commit 29197dc

Please sign in to comment.