.. include:: /Includes.rst.txt .. _feature-1791256965: ================================================== Feature: Record late arrivals and early departures ================================================== Description =========== Every recalculation of a day keeps its lateness incidents in step: a late start or early end beyond the grace is an incident of type ``lateStart`` or ``earlyEnd`` with the seconds, the expected and the punched time, whatever source the punches came from. An incident whose deviation vanishes, such as after a correction or an approved leave, becomes ``withdrawn``; while lateness tracking is off, no incident is created. New incidents publish ``LatenessIncidentRecorded``, withdrawn ones ``LatenessIncidentWithdrawn``. ``listLatenessIncidents`` and ``getLatenessIncident`` show them to the employee, managers in scope and HR; ``dismissLatenessIncident`` lets a manager in scope or HR excuse one with a reason, audited. Nobody excuses their own. The pages :guilabel:`My time > My late arrivals` and :guilabel:`Team > Late arrivals` list them, and an incident's page offers :guilabel:`Excuse`. Impact ====== Run the database migrations. Days recalculated from now on get their incidents. .. index:: package:adsum-attendance