Commit Graph
5 Commits
Author SHA1 Message Date
m3ta-chironandClaude Opus 5.5 aa416d32b7 fix(validator): accept genuine zero totals in the required-field check
CI / docker (push) Canceled after 0s
CI / test (push) Canceled after 0s
pflichtfelder rejected every invoice whose net, VAT or gross total was 0.
The extractor reads an absent total as 0, so this could not tell a missing
value from a real zero and rejected tax-exempt / reverse-charge invoices
(VAT 0, e.g. customs agent invoices) and zero-sum invoices.

A zero total now counts as missing only when the rest of the invoice
implies another value: net vs. the line items, VAT total vs. the VAT
breakdown, gross vs. net plus VAT.

Closes zugferd-esf.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 07:29:29 +01:00
m3ta-chironandClaude Fable 5.2 5f2cc72a4f docs: bring README and agent guides in line with the code
- supported formats, xml_base64, xml_syntax, buyer_reference, profile
- profile table, error codes and required-field rules match the code
- pdf_abgleich and logging sections describe the actual behavior
- NixOS section uses the shipped module instead of a hand-written unit
- test files, CI commands, uv.lock and validator_schema.json listed
- CLAUDE.md points to AGENTS.md instead of template placeholders

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 18:33:51 +01:00
m3ta-chiron 7fcb3ff21d fix: extract tax number, price basis quantity, spaced VAT IDs and contact email
- supplier/buyer: extract FC tax registration (BT-32/BT-49) into new
  tax_number field; previously only VA (USt-IdNr.) was read
- pflichtfelder: critical error only when neither vat_id nor tax_number
  is present (EN 16931 BR-CO-26)
- ustid: tolerate formatting whitespace inside VAT IDs (e.g. 'DE 140 978 617')
- line items: normalize unit price by basis quantity (BT-149), so a
  price per 100 units no longer inflates line totals by factor 100
- supplier email: also look in DefinedTradeContact (BT-42)
- rewrite xrechnung fallback test to assert only our own behavior,
  independent of factur-x version specifics
2026-09-11 16:05:41 +02:00
m3tm3reandSisyphus 3eddd66003 build(nix): add Nix flake, NixOS module, and README documentation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-02-04 20:39:43 +01:00
m3tm3re 48ad42aa19 first commit 2026-02-04 18:33:16 +01:00