leave balance now fy not calendar

changed the default from_date and to_date of Leave Balance Report to FY
This commit is contained in:
RobertSchouten 2016-09-09 10:48:34 +08:00 committed by GitHub
parent e5d13f3156
commit 2ecddf58d2

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")
}
]
}
}