---
title: "Bugfix: Count the approved worked time of a corrected day"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:bugfix-1793236934@main"
source: "Changelog/1.0.0/Bugfix-1793236934-CountTheApprovedWorkedTimeOfACorrectedDay.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Bugfix: Count the approved worked time of a corrected day {#bugfix-1793236934}

## Description {#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 {#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.
