0.17.2: Kostenart Fahrt (2 × Strecke × Einsatztage × Fahrzeuge)
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-21 15:22:39 +00:00
parent 4d82336f73
commit 4c9f0643d6
12 changed files with 91 additions and 39 deletions

View File

@@ -24,7 +24,7 @@ const blatt = z.object({
});
// Zeitansatz oder Material einer Vorlage: wird beim Einfügen eine Kostenzeile der Position
const ansatz = z.object({
kostenart: z.enum(["lohn", "material", "geraet", "subunternehmer", "sonstiges"]),
kostenart: z.enum(["lohn", "material", "geraet", "fahrt", "subunternehmer", "sonstiges"]),
lohnart: z.enum(["planer", "geselle", "helfer"]).nullable().optional(),
beschreibung: z.string().max(300).nullable().optional(),
bezug: kurzeFormel.nullable().optional(),
@@ -146,7 +146,8 @@ export const TABELLEN: Tabelle[] = [
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), subunternehmer: z.number().min(0).max(500), sonstiges: z.number().min(0).max(500) }).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), fahrt: z.number().min(0).max(500), subunternehmer: z.number().min(0).max(500), sonstiges: z.number().min(0).max(500) }).partial().optional(),
kilometersatz: z.number().int().min(0).optional(),
mengen: z.object({ verschnitt: z.number().min(0).max(100), oeffnung_ab: z.number().min(0).max(100) }).partial().optional(),
stand: datum.optional(),
}).optional(),
@@ -194,7 +195,7 @@ export const TABELLEN: Tabelle[] = [
sortierung: "position_id, reihenfolge",
schema: z.object({
position_id: id,
kostenart: z.enum(["lohn", "material", "geraet", "subunternehmer", "sonstiges"]),
kostenart: z.enum(["lohn", "material", "geraet", "fahrt", "subunternehmer", "sonstiges"]),
lohnart: z.enum(["planer", "geselle", "helfer"]).nullable().optional(),
beschreibung: optText,
menge: z.number().min(0).max(1e9).optional(),