2013-11-20 07:29:58 +00:00
|
|
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
2013-08-05 09:29:54 +00:00
|
|
|
// License: GNU General Public License v3. See license.txt
|
|
|
|
|
2013-05-13 10:29:50 +00:00
|
|
|
wn.query_reports["Monthly Attendance Sheet"] = {
|
|
|
|
"filters": [
|
|
|
|
{
|
|
|
|
"fieldname":"month",
|
2013-10-07 19:38:35 +00:00
|
|
|
"label": wn._("Month"),
|
2013-05-13 10:29:50 +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",
|
|
|
|
"Dec"][wn.datetime.str_to_obj(wn.datetime.get_today()).getMonth()],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"fiscal_year",
|
2013-10-07 19:38:35 +00:00
|
|
|
"label": wn._("Fiscal Year"),
|
2013-05-13 10:29:50 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Fiscal Year",
|
|
|
|
"default": sys_defaults.fiscal_year,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"employee",
|
2013-10-07 19:38:35 +00:00
|
|
|
"label": wn._("Employee"),
|
2013-05-13 10:29:50 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Employee"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"fieldname":"company",
|
2013-10-07 19:38:35 +00:00
|
|
|
"label": wn._("Company"),
|
2013-05-13 10:29:50 +00:00
|
|
|
"fieldtype": "Link",
|
|
|
|
"options": "Company",
|
2013-07-26 07:32:18 +00:00
|
|
|
"default": wn.defaults.get_default("company")
|
2013-05-13 10:29:50 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|