Bugfix: Count the approved worked time of a corrected day
Description
The stage attendance- kept the punches of a day and changed only the first clock-in and the last
clock-out. Where a punch was missing that the approved request repaired, the day then ended below the worked time
that the person told Horilla and HR approved. The approved worked time is now the worked time of the day. Punches that
reach it stay, with one break for the rest. Punches that give less give way to the corrected clock-in and clock-out
with one break of the difference in the middle of the span (information correction). Only a worked
time that is higher even than the corrected pair keeps the whole span of the pair and is reported
(attendance).
An approved request without requested data on a day with an activity over midnight, which the import cut, is a
correction as well: the clock-in, clock-out and worked time of its attendance record are the correction, under the
same rules. The stage attendance- leaves such a record to the corrections.
Impact
Run the stage again on an import that was made before: the days of the corrections whose punches fell below the approved worked time, and the cut days with an approved record, are replaced.