.. include:: /Includes.rst.txt .. _feature-1793034353: =========================================================== Feature: Approve requests within a leave contingent at once =========================================================== Description =========== A request of a working absence with a contingent is approved at once when, in every leave year its dates touch, it lies within what remains of the contingent. The approval records the reason ``contingent`` with the remaining amount before, the quantity of the request and the remaining amount after, and no approver is asked: the approval rules for leave requests, including steps added by absence limits, restricted periods and request deadlines, are skipped. Rules that refuse a request, such as an overlap or a blocking period, still apply. A request that exceeds the remaining contingent goes whole into the normal approval; its approvers read the figures in ``contingentNote`` of the request. Used is counted from the approved requests of the type in the leave year, so cancelled days are available again and a pending request reserves nothing. ``LeaveApproved`` carries ``decidedBy`` ``contingent``. The approval engine accepts a submission with its own auto-approval (``SubmissionOptions::$autoApproval``). Impact ====== Types without a contingent follow the approval rules as before. .. index:: API, Database, Frontend, package:adsum-core, package:adsum-leave