Feature: Manage leave types and leave settings
Description
HR defines the company's leave types: names in English and German (unique per language), category, what they consume
(only vacation the leave days, only time off in lieu the working-time account), half days, a quota per occasion, days
allowed below zero, an attachment requirement, a certificate day for sickness, the payroll class and the eligibility
conditions. Types carry no approval and no visibility; approval reports what the approval rules say for the
reader. credits defaults by category and is never on for time off in lieu.
Eligibility conditions are a registry of kinds (department, employment type, location, months of employment, once
per employment), listed by list; every configured condition is evaluated.
list with eligible returns only the types the reader may take today.
get and update hold the company's leave settings with their defaults.
Impact
New tables leave_, leave_ and leave_ (migration). Deleting a type answers 409 once
policies, ledger entries or requests use it; as these come later, every type can still be deleted for now.