.. include:: /Includes.rst.txt .. _feature-1791289581: ================================================= Feature: Allocate leave to many employees at once ================================================= Description =========== HR allocates days of a type with a balance to up to 500 employees with ``createLeaveAllocationBatch`` (``POST /leave-allocation-batches``), on :guilabel:`Team > Extra days`: the quantity in days or in seconds, an optional end of validity and a reason. Mode ``book`` books an ``allocation`` entry per employee at once with the batch as source; mode ``request`` files an allocation request per employee for their approvers. Every employee is checked like a single allocation, and a failure (``ownLedger``, ``eligibility.``, ``unitMismatch``) is reported for that employee without stopping the others. The operation takes an ``Idempotency-Key``. Impact ====== The new table ``leave_allocation_batch`` keeps every batch with the outcome per employee. Ledger entries of a batch have the source ``allocationBatch``. .. index:: API, Database, Frontend, package:adsum-leave