.. include:: /Includes.rst.txt .. _feature-1793215465: ==================================================================== Feature: Add absences that Horilla lacks to every import from a file ==================================================================== Description =========== Some absences were never entered in Horilla, such as a vacation approved outside the system, a release by law before an exam or a sickness nobody reported. Entered by hand in adsum, they were lost with every fresh import. The optional mapping file ``additional-absences.csv`` (``personnelNumber,from,to,part,leaveType,reason``) lists them; the new stage ``additional-absences``, after ``leave-requests`` and ``punches``, enters each row as HR records an absence afterwards: a request approved without an approval step, marked as entered by HR and audited with the reason, with a day before the cut-over charged against the opening balance, or a sickness report for the leave type ``sickness``. A row that shares a day with an absence or with tracked time is reported (``overlappingAbsence``, ``overlappingTrackedTime``) and not imported, an unknown person or leave type is an error of the row, and every entered row is listed in the report. Impact ====== Only with ``MIGRATION_ENABLED=1`` and the file in ``MIGRATION_MAPPING_DIR``. A second run with the same file changes nothing, and a dry run writes nothing. Without the file the stage does nothing and says so. .. index:: Migration, package:adsum-migration