0.30.0: Terminplan in Vierteltagen, Überschneidung erst über einen Tag
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:
@@ -191,7 +191,7 @@ export async function baueApp(o: Optionen): Promise<FastifyInstance> {
|
||||
const alt = id ? (await c.query(`select vorgang_id, bezug_art, freitag from ${tabelle} where id = $1`, [id])).rows[0] : undefined;
|
||||
const vid = (daten.vorgang_id !== undefined ? daten.vorgang_id : alt?.vorgang_id) as string | null | undefined;
|
||||
if (!vid) return;
|
||||
const v = (await c.query("select id, start, dauer, freitage from vorgang where id = $1", [vid])).rows[0];
|
||||
const v = (await c.query("select id, start, start_teil, dauer, freitage from vorgang where id = $1", [vid])).rows[0];
|
||||
if (!v) return;
|
||||
const e = await ladeEinstellungen();
|
||||
const art = (daten.bezug_art ?? alt?.bezug_art ?? "EE") as BezugArt;
|
||||
@@ -324,7 +324,7 @@ export async function baueApp(o: Optionen): Promise<FastifyInstance> {
|
||||
const e = await ladeEinstellungen();
|
||||
const [projekte, vorgaenge, zahlungen, kosten, laufend] = await Promise.all([
|
||||
pool.query("select * from projekt"),
|
||||
pool.query("select v.id, a.projekt_id, v.start, v.dauer, v.freitage from vorgang v join abschnitt a on a.id = v.abschnitt_id"),
|
||||
pool.query("select v.id, a.projekt_id, v.start, v.start_teil, v.dauer, v.freitage from vorgang v join abschnitt a on a.id = v.abschnitt_id"),
|
||||
pool.query("select * from zahlung"),
|
||||
pool.query("select * from kosten"),
|
||||
pool.query("select * from laufende_kosten"),
|
||||
|
||||
Reference in New Issue
Block a user