2021-03-18 09:55:22 +00:00
|
|
|
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
|
|
|
// For license information, please see license.txt
|
|
|
|
/* eslint-disable */
|
|
|
|
|
2021-04-19 11:19:28 +00:00
|
|
|
frappe.query_reports["Project Profitability"] = {
|
2021-03-18 09:55:22 +00:00
|
|
|
"filters": [
|
2021-03-25 08:01:43 +00:00
|
|
|
{
|
|
|
|
"fieldname": "company",
|
|
|
|
"label": __("Company"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Company",
|
|
|
|
"default": frappe.defaults.get_user_default("Company"),
|
|
|
|
"reqd": 1
|
|
|
|
},
|
2021-03-18 09:55:22 +00:00
|
|
|
{
|
|
|
|
"fieldname": "start_date",
|
|
|
|
"label": __("Start Date"),
|
|
|
|
"fieldtype": "Date",
|
2021-03-25 08:01:43 +00:00
|
|
|
"reqd": 1,
|
|
|
|
"default": frappe.datetime.add_months(frappe.datetime.get_today(), -1)
|
2021-03-18 09:55:22 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "end_date",
|
|
|
|
"label": __("End Date"),
|
|
|
|
"fieldtype": "Date",
|
2021-03-25 08:01:43 +00:00
|
|
|
"reqd": 1,
|
|
|
|
"default": frappe.datetime.now_date()
|
2021-03-18 09:55:22 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "customer_name",
|
|
|
|
"label": __("Customer"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Customer"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "employee",
|
|
|
|
"label": __("Employee"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Employee"
|
2021-04-20 12:23:41 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname": "project",
|
|
|
|
"label": __("Project"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Project"
|
2021-03-18 09:55:22 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|