Feature: Check days against the Working Hours Act
Description
Every closed day with complete punches is checked against the German Working Hours Act: the daily maximum
(daily), the required break (break; the model's thresholds, never below 30 minutes above
6 hours and 45 minutes above 9 hours, counting only breaks of at least 15 minutes) and the rest since the last
clock-out (rest). Work on a Sunday or a public holiday is recorded as a notice (sunday,
holiday) and flagged on the day (worked, worked).
Where the company deducts missing breaks, the worked time of the day is reduced by the missing break, shown as
deducted with the flag break, and no violation is raised.
Violations follow their day: a recalculation updates them, resolves those no longer broken and opens them again.
Working is published once per employee, date and rule; violations (not notices) notify the
employee, their manager and HR (time.). list lists them in the shared
scopes, the attendance day shows its own, and list filters by has.
Impact
New table working_ and column attendance_ (migration). Every day is
recalculated once on its next change, because its calculation now includes the check. A punch also recalculates the
following day, whose rest period starts with it.