0.30.0: Terminplan in Vierteltagen, Überschneidung erst über einen Tag
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-22 11:13:09 +00:00
parent e1b0406289
commit 177c9643c5
24 changed files with 281 additions and 98 deletions

View File

@@ -27,7 +27,7 @@ export function zeitraumText(von: string, bis: string): string {
/** Vorgänge, für die jemand im Zeitraum eingeteilt ist; Mitarbeiter sehen nur freigegebene (E27) */
async function einsaetzeIm(c: Abfrage, kontaktId: string, von: string, bis: string, woche: { tage: number[] }, nurFreigegeben: boolean) {
const r = await c.query(`select v.id, v.name, v.start, v.dauer, v.freitage, p.nummer, p.bezeichnung from besetzung_person b join vorgang v on v.id = b.vorgang_id
const r = await c.query(`select v.id, v.name, v.start, v.start_teil, v.dauer, v.freitage, p.nummer, p.bezeichnung from besetzung_person b join vorgang v on v.id = b.vorgang_id
join abschnitt a on a.id = v.abschnitt_id join projekt p on p.id = a.projekt_id
where b.kontakt_id = $1 and ($2 or b.freigegeben) and p.status in ('auftrag', 'ausfuehrung') and v.dauer > 0`, [kontaktId, !nurFreigegeben]);
return r.rows