einvoice / EN 16931 / XRechnung rule reference

BR-DEX-13

'Third party payment amount' (BT-DEX-002) may carry at most 2 fractional digits: string-length(substring-after(cbc:PaidAmount, '.')) <= 2 (no '.' -> '' -> length 0 -> holds).

Die maximale Anzahl zulässiger Nachkommastellen für das Element "Third party payment amount" (BT-DEX-002) ist 2.

Deutsche Fassung: Amtlicher KoSIT-Text (official KoSIT assert text).

Requires
'Third party payment amount' (BT-DEX-002) may carry at most 2 fractional digits: string-length(substring-after(cbc:PaidAmount, '.')) <= 2 (no '.' -> '' -> length 0 -> holds).
Business terms
BT-DEX-002
Syntax
Binds the UBL-2.1 Invoice / CreditNote syntax
Location (UBL-2.1 path)
/ubl:Invoice/cac:PrepaidPayment
Fix
Correct the calculated amount at `/ubl:Invoice/cac:PrepaidPayment` so that 'Third party payment amount' (BT-DEX-002) may carry at most 2 fractional digits: string-length(substring-after(cbc:PaidAmount, '.')) <= 2 (no '.' -> '' -> length 0 -> holds).
Fix (Deutsch)
Korrigieren Sie den berechneten Betrag bei `/ubl:Invoice/cac:PrepaidPayment`, sodass gilt: Die maximale Anzahl zulässiger Nachkommastellen für das Element "Third party payment amount" (BT-DEX-002) ist 2.
Severity
fatal
Provenance source
xrechnung-ubl
Provenance assert

Die maximale Anzahl zulässiger Nachkommastellen für das Element "Third party payment amount" (BT-DEX-002) ist 2.

The Location above is a UBL-2.1 path, and no UN/CEFACT-CII path for this rule is published here; Fix and Fix (Deutsch), verbatim from remediation_catalog.json and not reworded here; the UBL-2.1 binding of this rule is differentially proven against the official KoSIT XRechnung 2.5.0 (XRechnung 3.0.2) Schematron.

Everything here is free and open source — pick up whatever helps, at your own pace: