2013-11-20 07:29:58 +00:00
|
|
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2013-02-25 12:47:51 +00:00
|
|
|
wn.query_reports["Gross Profit"] = {
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"fieldname":"company",
|
2013-09-30 21:11:48 +00:00
|
|
|
"label": wn._("Company"),
|
2013-02-25 12:47:51 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Company",
|
|
|
|
"default": wn.defaults.get_user_default("company")
|
2013-03-21 14:54:10 +00:00
|
|
|
},
|
2013-03-22 07:46:10 +00:00
|
|
|
{
|
|
|
|
"fieldname":"from_date",
|
2013-09-30 21:11:48 +00:00
|
|
|
"label": wn._("From Date"),
|
2013-03-22 07:46:10 +00:00
|
|
|
"fieldtype": "Date",
|
|
|
|
"default": wn.defaults.get_user_default("year_start_date")
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"to_date",
|
2013-09-30 21:11:48 +00:00
|
|
|
"label": wn._("To Date"),
|
2013-03-22 07:46:10 +00:00
|
|
|
"fieldtype": "Date",
|
|
|
|
"default": wn.defaults.get_user_default("year_end_date")
|
|
|
|
},
|
2013-02-25 12:47:51 +00:00
|
|
|
]
|
|
|
|
}
|