.. include:: /Includes.rst.txt .. _bugfix-1793236934: ========================================================= Bugfix: Count the approved worked time of a corrected day ========================================================= Description =========== The stage ``attendance-corrections`` 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 ``correctionReplacedPunches``). Only a worked time that is higher even than the corrected pair keeps the whole span of the pair and is reported (``attendanceWorkedHoursExceedSpan``). 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-without-punches`` 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. .. index:: Migration, package:adsum-migration