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 late or early 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
Lateness, withdrawn ones Lateness.
list and get show them to the employee, managers in scope and HR;
dismiss lets a manager in scope or HR excuse one with a reason, audited. Nobody excuses their
own. The pages My time > My late arrivals and Team > Late arrivals list them, and an
incident's page offers Excuse.
Impact
Run the database migrations. Days recalculated from now on get their incidents.