
patrickandClaude Sonnet 4.6
ecf4789c07
feat: Überstunden-Kappung + Jahresverfall pro Firma konfigurierbar
Backend:
- Company: overtime_cap_hours, overtime_expiry_enabled/month/day,
overtime_max_carryover_hours
- OvertimeBalance: last_expiry_applied_at
- Migration 0031: neue Spalten in companies + overtime_balances
- _recalculate_overtime_balance: Kappung direkt nach Berechnung
- apply_overtime_expiry_if_needed(): lazy Verfall beim Balance-Abruf
- GET /absences/overtime-balance: prüft + wendet Verfall automatisch an
- POST /absences/overtime-balance/apply-expiry: manueller Trigger (Admin)
Frontend:
- CompanySettingsPage: neuer Block 'Überstunden-Konto'
- Toggle Kappungsgrenze + Stunden-Input
- Toggle Jahresverfall + Stichtag (Tag/Monat) + max. Übertrag
- 'Verfall anwenden'-Button für Admins
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>