.. include:: /Includes.rst.txt .. _feature-1791001814: ============================================== 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; ``approvalRequired`` reports what the approval rules say for the reader. ``creditsWorkingTime`` 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 ``listLeaveEligibilityConditionKinds``; every configured condition is evaluated. ``listLeaveTypes`` with ``eligibleForMe`` returns only the types the reader may take today. ``getLeaveSettings`` and ``updateLeaveSettings`` hold the company's leave settings with their defaults. Impact ====== New tables ``leave_type``, ``leave_type_name`` and ``leave_settings`` (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. .. index:: Backend, Database, RestApi, package:adsum-leave