Bugfix: A leave request for the next leave year counts the planned grant
Description
A leave request for a day of the next leave year, such as a week in early January submitted in November, was refused
with insufficient although the balance forecast showed the grant of the new year. Under a yearly grant, the
check of the request only looked at the entries booked so far. It now adds the grant and the carry-over that the policy
books up to each day that the booked entries do not cover, as the forecast does, and a planned entry does not
cover a day before it takes effect. A leave request taken over from Horilla is checked the same way.
Impact
Employees can request leave for the next leave year before it starts, as far as the planned grant and carry-over reach. Requests for days that nothing covers are still refused.