leave Annual proration issue
Summary:
Currently, the annual leave is not prorated according to the client’s expectations. One of my initial requirements was to implement a Front Loaded plan with accrual type. However, we are facing an issue when an employee's balance changes mid-year.
Current Proration Logic:
My current configuration calculates proration based on the updated balance and the remaining days in the year only. For example:
- If the new balance is 30 days and 184 days remain in the year:
> (30 / 365) * 184 = Prorated amount
Client’s Expected Behavior:
The client requires proration to split across both periods (before and after the balance change), using the respective balances: