Feature: Correct the employment history
Description
HR can correct the employment periods of an employee through the API: change the weekly contract hours, the start or the end of a period, started or not, or insert a period with other hours that splits what lies under it. A correction needs a reason and is recorded in the change history. One that changes days before today is refused until the client confirms the earliest day to recalculate; one that changes days in a closed payroll month is refused until it includes them explicitly, which is recorded too. The days from the earliest changed day on are recalculated through one EmployeeUpdated, so the time accounts and the credit of a school day by the average day follow the corrected hours.
Impact
Creating and deleting employment periods works as before; one period can now be read on its own. The correction is for HR; an employee or manager gets 403. The reporting package tells the employee records which payroll months are closed.