Feature: Ask for extra leave days
Description
Employees ask for extra days of a leave type with a balance, giving the days, a reason and optionally how long they stay valid; HR may ask for others. The request is decided by the approval rules for leaveAllocation, which can never waive the approval. Approval books the days as an allocation valid from that day to the wished date or the end of the year, if the employee is still eligible for the type; a rejected or withdrawn request books nothing, and a granted one is no longer rejected. HR takes granted days back with a correction of the balance.
The API offers listAllocationRequests, createAllocationRequest, getAllocationRequest and withdrawAllocationRequest. There is no separate compensatory leave: work on a holiday or a day off is plus time, taken back as time off in lieu.
Impact
A new table holds the requests for extra days.