Angebote mit Kalkulation: Leistungsverzeichnis, Kostenzeilen, Versandprüfung, Annehmen macht den Auftrag (0.16.0)
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:
@@ -98,6 +98,79 @@ export const TABELLEN: Tabelle[] = [
|
||||
notiz: optText,
|
||||
}),
|
||||
},
|
||||
// Stufe 3a: Angebote mit Kalkulation (A2, A19, A28, A32, A37); Status und Stände nur über eigene Routen
|
||||
{
|
||||
name: "angebot",
|
||||
pfad: "angebote",
|
||||
sortierung: "projekt_id, datum, nummer",
|
||||
schema: z.object({
|
||||
projekt_id: id,
|
||||
nummer: text,
|
||||
belegart: z.enum(["angebot", "kostenvoranschlag"]).optional(),
|
||||
datum: datum.optional(),
|
||||
bindefrist: datum.nullable().optional(),
|
||||
betreff: optText,
|
||||
kopftext: optText,
|
||||
schlusstext: optText,
|
||||
wagnis_prozent: z.number().min(0).max(50).optional(),
|
||||
gewinn_prozent: z.number().min(0).max(50).optional(),
|
||||
ausfall_prozent: z.number().min(0).max(50).optional(),
|
||||
saetze: z.object({
|
||||
stundensaetze: z.object({ planer: cent.min(0), geselle: cent.min(0), helfer: cent.min(0) }).partial().optional(),
|
||||
zuschlaege: z.object({ lohn: z.number().min(0).max(500), material: z.number().min(0).max(500), geraet: z.number().min(0).max(500), sonstiges: z.number().min(0).max(500) }).partial().optional(),
|
||||
stand: datum.optional(),
|
||||
}).optional(),
|
||||
notiz: optText,
|
||||
reihenfolge: z.number().int().optional(),
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "angebot_titel",
|
||||
pfad: "angebot-titel",
|
||||
sortierung: "angebot_id, reihenfolge",
|
||||
schema: z.object({
|
||||
angebot_id: id,
|
||||
oz: optText,
|
||||
bezeichnung: text,
|
||||
reihenfolge: z.number().int().optional(),
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "angebot_position",
|
||||
pfad: "angebot-positionen",
|
||||
sortierung: "angebot_id, reihenfolge",
|
||||
schema: z.object({
|
||||
angebot_id: id,
|
||||
titel_id: id.nullable().optional(),
|
||||
oz: optText,
|
||||
kurztext: text,
|
||||
langtext: optText,
|
||||
menge: z.number().min(0).max(1e9).optional(),
|
||||
einheit: text.optional(),
|
||||
art: z.enum(["normal", "alternativ", "eventual", "eventual_summe"]).optional(),
|
||||
grundposition_id: id.nullable().optional(),
|
||||
ep_fest: cent.min(0).nullable().optional(),
|
||||
reihenfolge: z.number().int().optional(),
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "angebot_kosten",
|
||||
pfad: "angebot-kosten",
|
||||
sortierung: "position_id, reihenfolge",
|
||||
schema: z.object({
|
||||
position_id: id,
|
||||
kostenart: z.enum(["lohn", "material", "geraet", "sonstiges"]),
|
||||
lohnart: z.enum(["planer", "geselle", "helfer"]).nullable().optional(),
|
||||
beschreibung: optText,
|
||||
menge: z.number().min(0).max(1e9).optional(),
|
||||
einheit: optText,
|
||||
ek: cent.min(0).nullable().optional(),
|
||||
faktor: z.number().positive().max(100).optional(),
|
||||
faktor_grund: optText,
|
||||
zuschlag_prozent: z.number().min(0).max(500).nullable().optional(),
|
||||
reihenfolge: z.number().int().optional(),
|
||||
}),
|
||||
},
|
||||
{
|
||||
name: "abschnitt",
|
||||
pfad: "abschnitte",
|
||||
|
||||
Reference in New Issue
Block a user