Angebot als Dokument: Kopf und Texte wie im Ausdruck, ruhige Zeilen, Position mit Reitern, Leiste mit Reitern, Summenleiste unten
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:
@@ -42,7 +42,7 @@ export function saetzeVon(a: { saetze?: unknown; wagnis_prozent: unknown; gewinn
|
||||
|
||||
export async function ladeAngebot(c: Pick<Pool, "query">, id: string, e: Einstellungen) {
|
||||
const angebot = (await c.query(`select a.*, p.nummer as projekt_nummer, p.bezeichnung as projekt_name, p.bauherr_id, p.status as projekt_status,
|
||||
k.name as bauherr_name, k.firma as bauherr_firma
|
||||
k.name as bauherr_name, k.firma as bauherr_firma, p.baustelle_strasse, p.baustelle_plz, p.baustelle_ort
|
||||
from angebot a join projekt p on p.id = a.projekt_id left join kontakt k on k.id = p.bauherr_id where a.id = $1`, [id])).rows[0];
|
||||
if (!angebot) return null;
|
||||
const [t, p, k] = await Promise.all([
|
||||
@@ -223,9 +223,10 @@ export function registriereAngebote(
|
||||
|
||||
app.get("/api/angebote/:id/voll", async (req, reply) => {
|
||||
const { id } = IdParam.parse(req.params);
|
||||
const x = await ladeAngebot(pool, id, await einstellungen());
|
||||
const e = await einstellungen();
|
||||
const x = await ladeAngebot(pool, id, e);
|
||||
if (!x) return reply.status(404).send({ fehler: "Nicht gefunden" });
|
||||
return { ...x, pruefung: pruefung(x) };
|
||||
return { ...x, pruefung: pruefung(x), ust_satz: e.ust.satz };
|
||||
});
|
||||
|
||||
// A14: vor dem Versand prüfen; mit Fehlern nur, wenn ausdrücklich „trotzdem“
|
||||
|
||||
Reference in New Issue
Block a user