Feature: Correct attendance days through requests and directly
Description
Employees request corrections of their own past days through create: adding a punch, removing
one or moving it to another time, with a reason. A request is an approval of the subject type
attendance; until it is approved, no punch changes. An approved request voids the punches it replaces,
records the new ones with the source correction, returns a validated day to validation and recalculates the day,
so the working-time account books the difference. A request that no longer fits the day when it is approved changes
nothing and is marked as failed; the requester and HR are told (time.).
Requests are changed while they wait (the approval starts again and links the earlier one), withdrawn, and removed once rejected or withdrawn. A day takes one waiting request at a time, and requests reach back as far as the company's correction window.
Managers in scope and HR correct a day directly with correct; nobody corrects their own day that way.
The reason and the operations go into the change history, and the employee is told (time.).
Impact
New table attendance_ (migration). New approval subject type attendance, which approval
rules may name. Attendance now names the waiting request of the day.