IndentationError

alligned code
This commit is contained in:
Meatechsupport 2015-07-27 16:42:22 +04:00
parent 5c73bafeaa
commit e319598c51

View File

@ -239,14 +239,14 @@ def get_total_leave_days(leave_app):
if not leave_app.half_day:
tot_days = date_diff(leave_app.to_date, leave_app.from_date) + 1
if frappe.db.get_value("Leave Type", self.leave_type, "include_holiday"):
holidays = leave_app.get_holidays()
ret = {
'total_leave_days' : flt(tot_days)-flt(holidays)
}
else:
ret = {
'total_leave_days' : flt(tot_days)
}
holidays = leave_app.get_holidays()
ret = {
'total_leave_days' : flt(tot_days)-flt(holidays)
}
else:
ret = {
'total_leave_days' : flt(tot_days)
}
return ret
@frappe.whitelist()