do-documents-smart
One schema, every business document — defined once, trusted everywhere.
do-documents-smart holds the single source of truth for the structure of a business’s documents — invoices, letters and more. It is built for small businesses and sole traders who need legally sound, trilingual (German / French / English) paperwork without maintaining the same field list in four places.
Features
Document types
- Document types modelled today: letter and invoice (the invoice flagged final for the Factur-X / EN 16931 e-invoicing pipeline).
Trilingual labels
- Trilingual field labels (German, French, English) on every field.
Field types
- Rich field model: kinds
text,area,date,number,money,selectandbool, with character limits, required / empty-ok flags, select options, minimum values, file references, and references into master-data registries (signatures, addresses, recipients).
Document structure
- Groups, repeatable line-item lists (with totals and a minimum count), and an address-window line model that counts rendered lines, not raw fields.
Reusable blocks and composition
- Reusable field blocks spliced into document types with path rebasing — one counterparty definition serves both a letter’s recipient and an invoice’s customer.
Schema source and loader
- Single source of truth: one YAML file describes every document’s fields; all consumers derive their rules from it instead of holding their own copy.
- Strict validating loader: a schema it cannot fully understand is refused rather than silently loaded with a check disabled.
- YAML merge-key / anchor support with a recursion-depth guard against self-referencing anchors.
Roadmap
- Wire the schema’s three intended consumers — validator, editor and renderer — to this single file, replacing the four definitions that previously drifted apart (generators, templates, editor schema, validator). (Planned; the consumers are not yet part of this module.)
- Model the remaining document types the existing toolchain already produces — quote, delivery note, dunning, report and annex — so far only letter and invoice are defined. (Planned.)
- Carry over Factur-X / EN 16931 compliant e-invoicing from the existing pipeline. (Planned.)
- Parallel operation during migration: keep the current document path authoritative until the schema-driven path is fully validated, then cut over. (Concept.)