2015-03-03 14:55:30 +05:30
|
|
|
// Copyright (c) 2015, Frappe 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",
|
2015-04-30 15:33:31 -07:00
|
|
|
"reqd": 1,
|
2015-12-23 16:37:00 +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
|
|
|
},
|
2019-04-23 18:33:01 +05:30
|
|
|
{
|
|
|
|
"fieldname":"sales_invoice",
|
|
|
|
"label": __("Sales Invoice"),
|
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Sales Invoice"
|
|
|
|
},
|
2014-11-24 15:12:37 +05:30
|
|
|
{
|
|
|
|
"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 18:17:51 +05:30
|
|
|
]
|
2014-11-24 15:12:37 +05:30
|
|
|
}
|