feat: add date range filters

This commit is contained in:
Mangesh-Khairnar
2019-05-03 16:00:02 +05:30
parent cc8e2b6aca
commit 13d393247a
2 changed files with 21 additions and 4 deletions

View File

@@ -10,21 +10,30 @@ frappe.query_reports["Procurement Tracker"] = {
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
}
},
{
fieldname: "from_date",
label: __("From Date"),
fieldtype: "Date",
default: frappe.defaults.get_user_default("year_start_date"),
},
{
fieldname:"to_date",
label: __("To Date"),
fieldtype: "Date",
default: frappe.defaults.get_user_default("year_end_date"),
},
]
}