Feature: Book final days on the working-time account 

Description 

Every employee has a working-time account kept as an append-only ledger. When an attendance day becomes final (closed, complete and, where the company validates days, validated), its difference to the target is booked as a daily entry. Minus time always counts; plus time counts in full under the flextime policy and up to the daily tolerance when overtime needs approval. A day that changes later gets a correcting entry for the difference, never a changed entry.

Entries carry the day they concern and the payroll month they count in; an entry for a closed payroll month counts in the first open month. Limits of the account only warn: a booking beyond them happens in full.

Impact 

Balances start with the first final day after the update. Earlier days are booked when they are recalculated. WorkingTimeAccountBooked is published for every entry.