brotherton-erpnext/erpnext/accounts/report/gross_profit/gross_profit.js

26 lines
667 B
JavaScript
Raw Normal View History

2013-11-20 07:29:58 +00:00
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
2014-02-14 10:17:51 +00:00
frappe.query_reports["Gross Profit"] = {
"filters": [
{
"fieldname":"company",
2014-04-14 10:55:30 +00:00
"label": __("Company"),
"fieldtype": "Link",
"options": "Company",
2014-02-14 10:17:51 +00:00
"default": frappe.defaults.get_user_default("company")
},
2013-03-22 07:46:10 +00:00
{
"fieldname":"from_date",
2014-04-14 10:55:30 +00:00
"label": __("From Date"),
2013-03-22 07:46:10 +00:00
"fieldtype": "Date",
2014-02-14 10:17:51 +00:00
"default": frappe.defaults.get_user_default("year_start_date")
2013-03-22 07:46:10 +00:00
},
{
"fieldname":"to_date",
2014-04-14 10:55:30 +00:00
"label": __("To Date"),
2013-03-22 07:46:10 +00:00
"fieldtype": "Date",
2014-02-14 10:17:51 +00:00
"default": frappe.defaults.get_user_default("year_end_date")
2013-03-22 07:46:10 +00:00
},
]
}