You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Holiday list for 2024 just contains saturdays and sundays
Have an employee with 22 privilege leaves allocated for period 2024-01-01 to 2024-12-31
On 2024-08-01 (posting_date) I submit a leave application for 2024-08-12 to 2024-08-25. Approve it. So, 10 days used.
2024-08-10. Company decides to add 2024-08-16 to holiday list.
At the end of the year, leave balance report shows 9 days used, so 13 remaining. But … leave allocation (manual or assignment via policy) gets 10 days used, and carry 12 days. Should be 13.
Leave balance report calculate it taking on account the holiday list, but leave allocation carry mechanism seems to use total_leaves_allocated from each previous period leave allocation.
This is an edge case, when holiday list is modified after leave application, but it should be considered someway.
Options …
Blocking holiday list after first application?
Check existing leave applications on updating holiday list?
Would try too, I think better option is tuning method to calculate days to carry on leave allocation.
But I don't know about team point of view, since this could be a breaking change ...
Information about bug
Hi:
Leave balance report calculate it taking on account the holiday list, but leave allocation carry mechanism seems to use
total_leaves_allocated
from each previous period leave allocation.This is an edge case, when holiday list is modified after leave application, but it should be considered someway.
Options …
Reference
https://discuss.frappe.io/t/leave-carry-forward-calculation-after-holiday-list-update/142066
Thanks
Module
HR
Version
Tested on
version-14
,version-15
anddevelop
Installation method
None
Relevant log output / Stack trace / Full Error Message.
Code of Conduct
The text was updated successfully, but these errors were encountered: