Feature: Pay runs and the payslip preview 

Description 

Personnel administration creates a pay run for a month, half a month or a week. The run calculates one draft payslip for each employee whose contract covers the period, from the later of the run's start and the contract's start, and lists the others as left out with the reason. An employee has at most one payslip for any day, drafts are recalculated in place and a run is deleted only while all its payslips are drafts. A preview calculates a payslip with the same steps without storing anything and names what would stop its confirmation.

Impact 

The API offers the pay runs and the payslip preview for HR only. Repeating a request to create a run with the same Idempotency-Key answers the first run. Payslips cannot yet be confirmed.