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 registriereIch(app: FastifyInstance, pool: Pool, einstellungen:
if (!kontakt) return { heute, bis, einsaetze: [] };
const woche = { tage: (await einstellungen()).arbeitstage };
const r = await pool.query(
`select v.id, v.name, v.start, v.dauer, v.freitage, p.id as projekt_id, p.nummer, p.bezeichnung, p.baustelle_strasse, p.baustelle_plz, p.baustelle_ort
`select v.id, v.name, v.start, v.start_teil, v.dauer, v.freitage, p.id as projekt_id, p.nummer, p.bezeichnung, p.baustelle_strasse, p.baustelle_plz, p.baustelle_ort
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 b.freigegeben order by v.start, p.nummer`, [kontakt]);
const einsaetze = r.rows