Added finance book filter in accounts_receivable.js

This commit is contained in:
Gaurav Naik 2018-04-23 02:56:50 +05:30 committed by Nabin Hait
parent cddda8ac5f
commit 70ac2d2c51

View File

@ -10,6 +10,20 @@ frappe.query_reports["Accounts Receivable"] = {
"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":"customer",
"label": __("Customer"),