---
title: "Feature: Give imported employees their employment history"
manual: "adsum by web-vision"
version: "main"
permalink: "https://docs.typo3.org/permalink/web-vision/adsum-monorepo:feature-1793207008@main"
source: "Changelog/1.0.0/Feature-1793207008-GiveImportedEmployeesTheirEmploymentHistory.rst"
rendered: "2026-11-07T02:01:32+00:00"
---

# Feature: Give imported employees their employment history {#feature-1793207008}

## Description {#description}

Horilla keeps only the current work information, so an employee who was an apprentice and is now employed full time
arrived with one period of the current type and hours for all of their time. The optional mapping file
`employment-history.csv` (`personnelNumber,from,employmentType,weeklyContractHours`) lists the periods of a person
in order; each lasts until the day before the next, the first starts on the entry date. For a listed person they replace
the single period of the work information and of `weekly-contract.csv`. An unknown type, a row out of order or on the
day of the row above and a first row that is not the entry date are errors per line, and the person is not imported. The
new stage `employment-history` reports a personnel number that no employee of Horilla has.

## Impact {#impact}

Only with `MIGRATION_ENABLED=1` and the file in `MIGRATION_MAPPING_DIR`. A second run with the same file changes
nothing, and a dry run writes nothing. `run-all` runs the new stage after `employees`.
