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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
695 B
JavaScript
Raw Normal View History

// Copyright (c) 2015, Frappe 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",
"default": frappe.defaults.get_user_default("Company")
2013-05-06 13:07:57 +00:00
}
]
}