0.19.0: einzelne Freitage je Vorgang freigeben
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Nur für diesen Vorgang zählt der Freitag als Arbeitstag (Dauer, Ende, Nachfolger,
Auslastung, Kalender-Abo, Wer macht was, Einsätze am Handy).

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-21 16:34:10 +00:00
parent b2624e48e8
commit feb19241c5
31 changed files with 186 additions and 59 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, 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.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