Terminplan: Abwesenheiten je Person und Hinweis am Vorgang (0.38.0)
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:
@@ -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 })),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user