---
title: "Feature: Move an attendance record that Horilla dated wrongly"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1793265323@main"
source: "Changelog/1.0.0/Feature-1793265323-MoveAnAttendanceRecordThatHorillaDatedWrongly.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Move an attendance record that Horilla dated wrongly {#feature-1793265323}

## Description {#description}

Some attendance records in Horilla sit on the wrong day, such as a correction that was entered with the date of the day
before the work. HR clears that up with the people, but every fresh import starts from Horilla's data again. The
optional mapping file `attendance-adjustments.csv` (`personnelNumber,date,action,newDate,reason`) lists them; the
only action so far is `moveTo`. The record of that person and day, and its punches if it has any, is imported as if it
belonged to `newDate`, with the same times of day, and the reason becomes the note of the day. This holds for the
stages `punches`, `attendance-corrections` and `attendance-without-punches` alike. The leave of the person stays
as it is. The new stage `attendance-adjustments` reports every row: `attendanceMoved` for a row that is applied,
`attendanceAdjustmentNoRecord` when Horilla holds no record of the day and `attendanceAdjustmentTargetBusy` when
the new day has tracked time, in which cases the row is not applied.

## Impact {#impact}

Only with `MIGRATION_ENABLED=1` and the file in `MIGRATION_MAPPING_DIR`. Without the file nothing changes. A second
run with the same file imports nothing twice, and a dry run writes nothing. The three attendance stages now also
declare the table `employee_employee` (the stage `punches` `attendance_attendance` too), which they read to find
the person of a personnel number.
