brotherton-erpnext/erpnext/hr/report/employee_birthday/employee_birthday.js

22 lines
698 B
JavaScript
Raw Normal View History

2013-11-20 07:29:58 +00:00
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
2014-02-14 10:17:51 +00:00
frappe.query_reports["Employee Birthday"] = {
2013-05-06 13:07:57 +00:00
"filters": [
{
"fieldname":"month",
2014-04-14 10:55:30 +00:00
"label": __("Month"),
2013-05-06 13:07:57 +00:00
"fieldtype": "Select",
"options": "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug\nSep\nOct\nNov\nDec",
"default": ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov",
2014-02-14 10:17:51 +00:00
"Dec"][frappe.datetime.str_to_obj(frappe.datetime.get_today()).getMonth()],
2013-05-06 13:07:57 +00:00
},
{
"fieldname":"company",
2014-04-14 10:55:30 +00:00
"label": __("Company"),
2013-05-06 13:07:57 +00:00
"fieldtype": "Link",
"options": "Company",
2014-02-14 10:17:51 +00:00
"default": frappe.defaults.get_user_default("company")
2013-05-06 13:07:57 +00:00
}
]
}