Feature: Credit compensatory days earned on off days 

Description 

On CompensatoryDaysEarned of time tracking, leave books a compensatory entry on the company's compensatory type with the source offDayWork, valid from the day for the configured validity. On CompensatoryDaysChanged it books the difference, a lower total taking from the first credit as far as it remains and possibly leaving the balance below zero; 0 revokes the credit. Each employee and date is credited once, so a redelivered event books nothing. Without a configured type the days wait, HR receives leave.compensatoryTypeMissing, and the days are booked once the type is set. Every company books on its own type.

Impact 

The new table leave_compensatory_credit keeps the credit per employee and date. A revoked credit counts as deducted in the leave figures. The leave settings announce a change with LeaveSettingsChanged.