brotherton-erpnext/erpnext/accounts/report/gross_profit/gross_profit.js
2014-02-14 15:47:51 +05:30

26 lines
685 B
JavaScript

// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.query_reports["Gross Profit"] = {
"filters": [
{
"fieldname":"company",
"label": frappe._("Company"),
"fieldtype": "Link",
"options": "Company",
"default": frappe.defaults.get_user_default("company")
},
{
"fieldname":"from_date",
"label": frappe._("From Date"),
"fieldtype": "Date",
"default": frappe.defaults.get_user_default("year_start_date")
},
{
"fieldname":"to_date",
"label": frappe._("To Date"),
"fieldtype": "Date",
"default": frappe.defaults.get_user_default("year_end_date")
},
]
}