Added finance book filter in accounts_payable.js

This commit is contained in:
Gaurav Naik 2018-04-23 02:49:30 +05:30 committed by Nabin Hait
parent 57856b475c
commit cddda8ac5f

View File

@ -10,6 +10,20 @@ frappe.query_reports["Accounts Payable"] = {
"options": "Company",
"default": frappe.defaults.get_user_default("Company")
},
{
"fieldname":"finance_book",
"label": __("Finance Book"),
"fieldtype": "Link",
"options": "Finance Book",
"get_query": function() {
var company = frappe.query_report_filters_by_name.company.get_value();
return {
"filters": {
"company": company,
}
};
}
},
{
"fieldname":"supplier",
"label": __("Supplier"),