fix: Filter fixes in Accounts Payable report

This commit is contained in:
Deepesh Garg 2022-10-26 21:18:50 +05:30
parent 48808aeb8a
commit a5a73ba857
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,8 @@ frappe.query_reports["Accounts Payable"] = {
} else {
frappe.query_report.set_filter_value('tax_id', "");
}
frappe.query_report.refresh();
}
},
{

View File

@ -748,7 +748,7 @@ class ReceivablePayableReport(object):
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