Feature: Open the leave balances of the import 

Description 

The stage leave-balances opens each employee's leave balance at the cut-over date from Horilla's available leave, valid to the end of that year: one entry for the available days and one for the carried-over days valid until Horilla's expiry. The days Horilla already deducted for approved requests from the cut-over date on are added back, because those requests book their own usage. A value in leave-balances-confirmed.csv replaces Horilla's available days.

  • Days must be half-day steps (balanceNotHalfDayStep); a negative balance is booked with a warning (negativeBalance); an expired carry-forward books nothing (carryForwardExpired).
  • Under an hour-based policy the days become seconds of the employee's average working day, the weekly contract time divided by the working days per week, rounded half up (averageDayUnknown without a working-time model).
  • An entitlement already booked for the year stops that employee's type (entitlementAlreadyBooked); the opening entries keep the entitlement runs and the adjustments out of the covered year.

Impact 

Only with MIGRATION_ENABLED=1.