Feature: Move an attendance record that Horilla dated wrongly
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- (personnel) lists them; the
only action so far is move. The record of that person and day, and its punches if it has any, is imported as if it
belonged to new, with the same times of day, and the reason becomes the note of the day. This holds for the
stages punches, attendance- and attendance- alike. The leave of the person stays
as it is. The new stage attendance- reports every row: attendance for a row that is applied,
attendance when Horilla holds no record of the day and attendance when
the new day has tracked time, in which cases the row is not applied.
Impact
Only with MIGRATION_ and the file in MIGRATION_. 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_ (the stage punches attendance_ too), which they read to find
the person of a personnel number.