2015-03-03 09:25:30 +00:00
|
|
|
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
// 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
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|