feat: add filters for multiple company operation

This commit is contained in:
Mangesh-Khairnar
2019-04-28 17:11:02 +05:30
parent 9cd9671bb5
commit 96661ba847
4 changed files with 75 additions and 19 deletions

View File

@@ -4,6 +4,27 @@
frappe.query_reports["Procurement Tracker"] = {
"filters": [
{
fieldname: "company",
label: __("Company"),
fieldtype: "Link",
options: "Company",
default: frappe.defaults.get_user_default("Company"),
reqd: 1
},
{
fieldname: "cost_center",
label: __("Cost Center"),
fieldtype: "Link",
options: "Cost Center",
reqd: 1
},
{
fieldname: "project",
label: __("Project"),
fieldtype: "Link",
options: "Project",
reqd: 1
}
]
}