2013-11-20 12:59:58 +05:30
|
|
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 14:59:54 +05:30
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2014-02-14 15:47:51 +05:30
|
|
|
frappe.query_reports["Gross Profit"] = {
|
2013-02-25 18:17:51 +05:30
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"fieldname":"company",
|
2014-04-14 16:25:30 +05:30
|
|
|
"label": __("Company"),
|
2013-02-25 18:17:51 +05:30
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Company",
|
2014-02-14 15:47:51 +05:30
|
|
|
"default": frappe.defaults.get_user_default("company")
|
2013-03-21 20:24:10 +05:30
|
|
|
},
|
2013-03-22 13:16:10 +05:30
|
|
|
{
|
|
|
|
"fieldname":"from_date",
|
2014-04-14 16:25:30 +05:30
|
|
|
"label": __("From Date"),
|
2013-03-22 13:16:10 +05:30
|
|
|
"fieldtype": "Date",
|
2014-02-14 15:47:51 +05:30
|
|
|
"default": frappe.defaults.get_user_default("year_start_date")
|
2013-03-22 13:16:10 +05:30
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"to_date",
|
2014-04-14 16:25:30 +05:30
|
|
|
"label": __("To Date"),
|
2013-03-22 13:16:10 +05:30
|
|
|
"fieldtype": "Date",
|
2014-02-14 15:47:51 +05:30
|
|
|
"default": frappe.defaults.get_user_default("year_end_date")
|
2013-03-22 13:16:10 +05:30
|
|
|
},
|
2013-02-25 18:17:51 +05:30
|
|
|
]
|
|
|
|
}
|