mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 21:29:11 +00:00
55 lines
1.2 KiB
JavaScript
55 lines
1.2 KiB
JavaScript
// Copyright (c) 2016, Frappe Technologies Pvt. Ltd. and contributors
|
|
// For license information, please see license.txt
|
|
|
|
frappe.query_reports["Salary Register"] = {
|
|
"filters": [
|
|
{
|
|
"fieldname":"from_date",
|
|
"label": __("From"),
|
|
"fieldtype": "Date",
|
|
"default": frappe.datetime.add_months(frappe.datetime.get_today(),-1),
|
|
"reqd": 1,
|
|
"width": "100px"
|
|
},
|
|
{
|
|
"fieldname":"to_date",
|
|
"label": __("To"),
|
|
"fieldtype": "Date",
|
|
"default": frappe.datetime.get_today(),
|
|
"reqd": 1,
|
|
"width": "100px"
|
|
},
|
|
{
|
|
"fieldname": "currency",
|
|
"fieldtype": "Link",
|
|
"options": "Currency",
|
|
"label": __("Currency"),
|
|
"default": erpnext.get_currency(frappe.defaults.get_default("Company")),
|
|
"width": "50px"
|
|
},
|
|
{
|
|
"fieldname":"employee",
|
|
"label": __("Employee"),
|
|
"fieldtype": "Link",
|
|
"options": "Employee",
|
|
"width": "100px"
|
|
},
|
|
{
|
|
"fieldname":"company",
|
|
"label": __("Company"),
|
|
"fieldtype": "Link",
|
|
"options": "Company",
|
|
"default": frappe.defaults.get_user_default("Company"),
|
|
"width": "100px"
|
|
},
|
|
{
|
|
"fieldname":"docstatus",
|
|
"label":__("Document Status"),
|
|
"fieldtype":"Select",
|
|
"options":["Draft", "Submitted", "Cancelled"],
|
|
"default":"Submitted",
|
|
"width": "100px"
|
|
}
|
|
]
|
|
}
|