Merge pull request #6322 from RobertSchouten/patch-23

leave balance now fy not calendar
This commit is contained in:
Nabin Hait 2016-09-12 18:53:16 +05:30 committed by GitHub
commit fcbb7692fa

View File

@ -8,14 +8,14 @@ frappe.query_reports["Employee Leave Balance"] = {
"label": __("From Date"),
"fieldtype": "Date",
"reqd": 1,
"default": frappe.datetime.year_start()
"default": frappe.defaults.get_default("year_start_date")
},
{
"fieldname":"to_date",
"label": __("To Date"),
"fieldtype": "Date",
"reqd": 1,
"default": frappe.datetime.year_end()
"default": frappe.defaults.get_default("year_end_date")
},
{
"fieldname":"company",
@ -26,4 +26,4 @@ frappe.query_reports["Employee Leave Balance"] = {
"default": frappe.defaults.get_user_default("Company")
}
]
}
}