2020-04-18 13:29:32 +00:00
|
|
|
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
|
|
|
// For license information, please see license.txt
|
|
|
|
/* eslint-disable */
|
|
|
|
|
|
|
|
frappe.query_reports["Downtime Analysis"] = {
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
label: __("From Date"),
|
|
|
|
fieldname:"from_date",
|
2020-05-19 07:30:54 +00:00
|
|
|
fieldtype: "Datetime",
|
|
|
|
default: frappe.datetime.add_months(frappe.datetime.now_datetime(), -1),
|
2020-04-18 13:29:32 +00:00
|
|
|
reqd: 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: __("To Date"),
|
|
|
|
fieldname:"to_date",
|
2020-05-19 07:30:54 +00:00
|
|
|
fieldtype: "Datetime",
|
|
|
|
default: frappe.datetime.now_datetime(),
|
2020-04-18 13:29:32 +00:00
|
|
|
reqd: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: __("Machine"),
|
|
|
|
fieldname: "workstation",
|
|
|
|
fieldtype: "Link",
|
|
|
|
options: "Workstation"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|