frappe / hrms

Open Source HR and Payroll Software
https://frappe.io/hr
GNU General Public License v3.0
1.34k stars 688 forks source link

Earned Leave Based on Attendance (Actual Days Worked) #845

Open sjain17 opened 1 year ago

sjain17 commented 1 year ago

Information about bug

Leave policy assignment should work based on attendance of the month for the employee. For example- if an employee has joined on January 22 and has taken one month of leave without pay due to some personal reasons. The leave policy assignment has 12 Earned leaves annually, the system is still crediting 12 leaves for the employee instead it should have given only 11 leave or maybe less based on prorata basis.

Module

HR

Version

ERPNext: v14.37.1 Frappe Framework: v14.47.1 Frappe HR: v14.10.3

Installation method

FrappeCloud

Relevant log output / Stack trace / Full Error Message.

No error.

Code of Conduct

ruchamahabal commented 1 year ago

This is not a bug but its done by design. It's based on employment and not based on attendance currently

sjain17 commented 1 year ago

@ruchamahabal I understand its by design, but the system should credit earned leave when an employee has not earned it.