Skip to content

Commit

Permalink
half_day enable/disable check (#14795)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zlash65 authored and rmehta committed Jul 3, 2018
1 parent 205eae3 commit 68a148e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/hr/doctype/leave_application/leave_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ def get_approvers(doctype, txt, searchfield, start, page_len, filters):
@frappe.whitelist()
def get_number_of_leave_days(employee, leave_type, from_date, to_date, half_day = None, half_day_date = None):
number_of_days = 0
if half_day == 1:
if cint(half_day) == 1:
if from_date == to_date:
number_of_days = 0.5
else:
Expand Down

0 comments on commit 68a148e

Please sign in to comment.