Validation rules
BR-DEC-23
An invoice line net amount (BT-131) uses more than 2 decimal places — EN 16931 allows at most 2.
- Rule
BR-DEC-23— official EN 16931 / XRechnung rule- Severity
- error
- Business term
BT-131— Line net amount- Field in your JSON
invoice.lines[*]- Detected by
- tier 3 — KoSIT validator (authoritative)
- Reachability
- Only reachable when validating your own XML — normbill-generated documents cannot trigger it
normbill computes each line net (qty × unit_price ± line allowances/charges) and rounds it to 2 decimals before serializing.
How to fix it
Round the line's cbc:LineExtensionAmount to 2 decimals. Only the item net price (BT-146) may carry more decimals.
BR-DEC-23 auf Deutsch — was bedeutet der Fehler?
Der Nettobetrag einer Rechnungsposition (BT-131) hat mehr als 2 Nachkommastellen. EN 16931 erlaubt höchstens 2 Dezimalstellen — nur der Netto-Einzelpreis (BT-146) darf mehr tragen. Der KoSIT-Validator lehnt die Rechnung ab.
So beheben Sie den Fehler
Runden Sie das cbc:LineExtensionAmount der Position auf 2 Nachkommastellen. normbill berechnet jeden Positionsnettobetrag (qty × unit_price ± Positionsnachlässe/-zuschläge) und rundet ihn vor der Serialisierung auf 2 Stellen.
Official sources
- XRechnung specification (KoSIT / xeinkauf.de)
- KoSIT validator on GitHub and the XRechnung validator configuration
Every 422 from the API lists the rule id, the path in your request JSON, a plain-language message and a suggested fix — see the docs overview for the report format.