40 lines
884 B
JavaScript
40 lines
884 B
JavaScript
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
|
// For license information, please see license.txt
|
|
/* eslint-disable */
|
|
|
|
frappe.query_reports["Procurement Tracker"] = {
|
|
"filters": [
|
|
{
|
|
fieldname: "company",
|
|
label: __("Company"),
|
|
fieldtype: "Link",
|
|
options: "Company",
|
|
default: frappe.defaults.get_user_default("Company"),
|
|
},
|
|
{
|
|
fieldname: "cost_center",
|
|
label: __("Cost Center"),
|
|
fieldtype: "Link",
|
|
options: "Cost Center",
|
|
},
|
|
{
|
|
fieldname: "project",
|
|
label: __("Project"),
|
|
fieldtype: "Link",
|
|
options: "Project",
|
|
},
|
|
{
|
|
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"),
|
|
},
|
|
]
|
|
}
|