If a leave application was canceled, changed and again executed as a new leave application record, the worng record will be found during creation of work days because in the sql statement the "docstatus" filter is missing. The solution should look like:
If a leave application was canceled, changed and again executed as a new leave application record, the worng record will be found during creation of work days because in the sql statement the "docstatus" filter is missing. The solution should look like:
File: Root / opt / bench / erpnext / apps / hr_addon / hr_addon / hr_addon / api / utils.py
Function: