2015-03-03 09:25:30 +00:00
|
|
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2014-02-14 10:17:51 +00:00
|
|
|
frappe.query_reports["Gross Profit"] = {
|
2013-02-25 12:47:51 +00:00
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"fieldname":"company",
|
2014-04-14 10:55:30 +00:00
|
|
|
"label": __("Company"),
|
2013-02-25 12:47:51 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Company",
|
2015-04-30 22:33:31 +00:00
|
|
|
"reqd": 1,
|
2015-12-23 11:07:00 +00:00
|
|
|
"default": frappe.defaults.get_user_default("Company")
|
2013-03-21 14:54:10 +00:00
|
|
|
},
|
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
|
|
|
},
|
2019-04-23 13:03:01 +00:00
|
|
|
{
|
|
|
|
"fieldname":"sales_invoice",
|
|
|
|
"label": __("Sales Invoice"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Sales Invoice"
|
|
|
|
},
|
2014-11-24 09:42:37 +00:00
|
|
|
{
|
|
|
|
"fieldname":"group_by",
|
|
|
|
"label": __("Group By"),
|
|
|
|
"fieldtype": "Select",
|
|
|
|
"options": "Invoice\nItem Code\nItem Group\nBrand\nWarehouse\nCustomer\nCustomer Group\nTerritory\nSales Person\nProject",
|
|
|
|
"default": "Invoice"
|
|
|
|
},
|
2013-02-25 12:47:51 +00:00
|
|
|
]
|
2014-11-24 09:42:37 +00:00
|
|
|
}
|