+ Dokument mit Belegkette und GAEB-Import X/P/D 81–86 (0.28.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:
@@ -1,4 +1,5 @@
|
||||
// Eingabeprüfung für die Tabellen aus Stufe 0. Feldnamen = Spaltennamen.
|
||||
import { BELEGARTEN } from "../domain/belege.js";
|
||||
import { z } from "zod";
|
||||
|
||||
const datum = z.string().regex(/^\d{4}-\d{2}-\d{2}$/, "Datum im Format JJJJ-MM-TT");
|
||||
@@ -137,7 +138,10 @@ export const TABELLEN: Tabelle[] = [
|
||||
schema: z.object({
|
||||
projekt_id: id,
|
||||
nummer: text,
|
||||
belegart: z.enum(["angebot", "kostenvoranschlag"]).optional(),
|
||||
belegart: z.enum(BELEGARTEN).optional(),
|
||||
vorbeleg_id: id.nullable().optional(),
|
||||
quelle: optText,
|
||||
ist_vorlage: z.boolean().optional(),
|
||||
datum: datum.optional(),
|
||||
bindefrist: datum.nullable().optional(),
|
||||
betreff: optText,
|
||||
|
||||
Reference in New Issue
Block a user