ERPNext Conference 2019* Blog

(V12) Employee leave balance report is reporting wrong leave balance if employee has taken half day leave


The half day leave which has been taken by employee is taken as full day leave by the report.

I looked at the code in, the function get_leaves_for_period doesn’t seem to be considering half day leave at all. It simply:

		leave_days += get_number_of_leave_days(employee, leave_type,
			leave_entry.from_date, leave_entry.to_date) * -1

And those employees who have taken half day leaves are having wrong leave balance.

Leave application, incorrect used leaves

You may want to review this


I have tried out the fix and it works. When will the fix be implemented?