Our scenario is Employee has vacation entitlement of 30 days in the year 2020.
Employee should be able to use days from next year allotment (Cap is 10 days) in the current year if he has used this current allotment(30 days). Next year allotment is 30 days. And the allotment for the next year should show 30-10 days, it means 20 days.
How do we write a business rule for this scenario.