brotherton-erpnext/erpnext/projects/report/project_profitability/project_profitability.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.0 KiB
JavaScript
Raw Normal View History

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": [
{
"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",
"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",
"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
}
]
};