I need to setup the following leave plan:
* Annual Leave:
Employees who are employed less than 10 years receives 22 days per Annum that should accrue per month.
Employees who are employed more than 10 years receives 30 days per Annum that should accrue per month.
All anual leave start dates should start on the 1st of January and end 31 December and not on the employment date of the employee. Employees should be able to carry forward leave not taken from the previous cycle into the next leave cycle but all carried over leave not taken by the 30 June in the next year should be forfeited. (6 months into new cycle - 30 June)
Example:
Employee A started 1/1/2020. He has 6 days Annual leave over (not taken) at the end on December 2020. His 6 days should carry forward to 2021 leave cycle but only for 6 months and the days not taken should be forfeited at the end of June 2021.