Terminplan: Abwesenheiten je Person und Hinweis am Vorgang (0.38.0)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-26 08:41:04 +00:00
parent 6f059f8320
commit 39d2452d71
6 changed files with 96 additions and 12 deletions

View File

@@ -171,5 +171,8 @@ export async function terminplan(pool: Pool, woche: Arbeitswoche, stundenProTag
arbeitstage: woche.tage,
team,
auslastung: team_auslastung,
// Abwesenheiten im Terminplan (Henning, 26.10.2026): Urlaub, krank, Schule usw. von Team und Subunternehmern, ohne abgelehnte
abwesenheiten: kap.personal.abwesenheiten.filter((a) => a.status !== "abgelehnt" && a.bis >= ab)
.map((a) => ({ id: a.id, kontakt_id: a.kontakt_id, art: a.art, von: a.von, bis: a.bis, status: a.status, halbtag: !!a.halbtag, stunden: a.stunden ?? null })),
};
}