fix: set route filter values for AP

This commit is contained in:
Gursheen Anand
2023-09-27 13:01:18 +05:30
parent 76a5d94f37
commit 888ed36eed
2 changed files with 26 additions and 14 deletions

View File

@@ -88,7 +88,7 @@ frappe.ui.form.on("Supplier", {
}, __("View"));
frm.add_custom_button(__('Accounts Payable'), function () {
frappe.set_route('query-report', 'Accounts Payable', { supplier: frm.doc.name });
frappe.set_route('query-report', 'Accounts Payable', { party_type: "Supplier", party: frm.doc.name });
}, __("View"));
frm.add_custom_button(__('Bank Account'), function () {