.. include:: /Includes.rst.txt .. _feature-1793033288: ===================================================== Feature: Give a working absence a contingent per year ===================================================== Description =========== A working absence such as exam leave can carry a contingent: ``contingentAmount`` in the ``contingentUnit`` ``days`` or ``hours``, per leave year. HR sets it on the leave type form with :guilabel:`Contingent without approval` and :guilabel:`Contingent unit`, which the form shows only while :guilabel:`Worked time replaces credit` is on. Both are set or both are empty; a type that is no working absence, an amount above 366 days or 8784 hours and an amount of 0 or less are answered with 422 and a violation on ``contingentAmount`` or ``contingentUnit``. ``getLeaveType`` returns both. Forms can show a field only while a switch is on (``when`` with ``'true'``). Impact ====== Existing leave types have no contingent and keep following the approval rules. .. index:: API, Database, Frontend, package:adsum-leave