fix: set new AP summary filters

This commit is contained in:
Gursheen Anand
2023-09-26 15:11:54 +05:30
parent 7d96044d8e
commit 76a5d94f37
2 changed files with 20 additions and 6 deletions

View File

@@ -108,11 +108,8 @@ frappe.query_reports["Accounts Payable"] = {
},
on_change: () => {
frappe.query_report.set_filter_value('party', "");
let party_type = frappe.query_report.get_filter_value('party_type');
frappe.query_report.toggle_filter_display('supplier_group', frappe.query_report.get_filter_value('party_type') !== "Supplier");
}
},
{
"fieldname":"party",