Indentation Error
realligned
This commit is contained in:
parent
e319598c51
commit
8b96fdac12
@ -240,13 +240,13 @@ def get_total_leave_days(leave_app):
|
|||||||
tot_days = date_diff(leave_app.to_date, leave_app.from_date) + 1
|
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"):
|
if frappe.db.get_value("Leave Type", self.leave_type, "include_holiday"):
|
||||||
holidays = leave_app.get_holidays()
|
holidays = leave_app.get_holidays()
|
||||||
ret = {
|
ret = {
|
||||||
'total_leave_days' : flt(tot_days)-flt(holidays)
|
'total_leave_days' : flt(tot_days)-flt(holidays)
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
ret = {
|
ret = {
|
||||||
'total_leave_days' : flt(tot_days)
|
'total_leave_days' : flt(tot_days)
|
||||||
}
|
}
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user