feat: added cost center filter in AR/AP reports

This commit is contained in:
Rohit Waghchaure
2019-03-18 11:53:04 +05:30
parent 349a1157ef
commit ace95d5a67
10 changed files with 111 additions and 6 deletions

View File

@@ -50,6 +50,20 @@ frappe.query_reports["Accounts Payable"] = {
"fieldtype": "Link",
"options": "Finance Book"
},
{
"fieldname":"cost_center",
"label": __("Cost Center"),
"fieldtype": "Link",
"options": "Cost Center",
get_query: () => {
var company = frappe.query_report.get_filter_value('company');
return {
filters: {
'company': company
}
}
}
},
{
"fieldname":"supplier",
"label": __("Supplier"),