Repository navigation
typstgen 0.6.0
Added
-
E-invoices:
typstgen e-invoice,zugferd::ubl_xml_from_docgenand the MCP toole_invoice
write XRechnung 3.0 and Peppol BIS Billing 3.0 as UBL 2.1 from the same invoice model as the CII
XML. Electronic addresses, buyer and order references, seller telephone and payment means codes
are read from the invoice JSON; schema and Schematron validation are reported asnot_run. -
Invoices: Configurations support US presentation choices and additive sales-tax components,
with separate taxable bases and rounded amounts. Sales-tax invoices are excluded from CII export. -
Invoices:
prepare-invoiceand the matching Rust/MCP API build canonical invoice values
from user-owned tax and presentation configuration without requiring a national catalog. -
Profiles: Data-driven document profile listing, selection and invoice validation are shared
by the Rust library, CLI and MCP, with field diagnostics and separate external-validation states. -
ZUGFeRD: VAT code
Kleinunternehmeris accepted as an alias forExempt(category E), as used
by older invoice JSON files. It still needsexemption_reasonorexemption_reason_code.
Changed
- ZUGFeRD:
company.contact.nameis written as the seller contact (BT-41) in the CII XML. - Docs: docgen is discontinued. Its templates live on as the Typst package
business-templates
in typst-business-templates, and help texts
call the invoice data "business-templates invoice JSON". - Website: the start page shows a real compile run (a letter that compiles, a missing import that
fails with exit code 1) next to the PDF it wrote, and how typstgen works as a diagram. - Website: on the start page the introduction follows the title directly, beside the install tabs;
the badges moved below the compile run. - Docs: the
installation guide covers
the MCP setup and lists every Cargo feature, and the
templates guide shows the import
lookup order as a diagram.
Fixed
-
Profiles: Explicit invoice payment-account details also supply the PDF footer's bank name,
instead of retaining the company default bank name when an account is overridden. -
ZUGFeRD: Line amounts and tax amounts round directly to cents without a second rounding
through four fractional digits, preserving correct results at sub-cent boundaries. -
ZUGFeRD: Invalid calendar dates, conflicting currencies and stated tax-group values that
disagree with the normalized invoice are rejected before CII generation. -
Profiles: Malformed/conflicting optional dates and unsupported invoice discounts block the
rendering view; seller diagnostics point to the company input fields.
Security
- Dependencies: Updated rustls, rustls-webpki and webpki-roots to patched versions, Tokio to
1.53.3 and the withdrawn yoke-derive version to 0.8.4; no RustSec vulnerabilities remain in the lockfile.