Feature: Book leave by runs
Description
Leave runs book every night what the policies grant: the year's grants, monthly days, the carry-over at year end with its cap and expiry, expiries of ended validities, and reminders of days about to expire. Every booking has a key, so a run never books twice and catches up missed periods one by one. Where days may expire only after a reminder, days without one stay usable and the run lists them. Years covered by an opening balance are skipped.
Changes of employment, exit and working time recalculate the entitlement and book the difference as an adjustment.
HR sees and starts runs under Administration > Leave runs; the API offers list and
create. The notifications leave. and leave. are new; lists
can show the number of items with a count column.
Impact
Four new tables, a nightly job and a new entry in the navigation.