UBL-DT-01: Amounts shall be decimal up to two fraction digits
Amounts shall be decimal up to two fraction digits
- Spezifikation: UBL-Syntaxregeln (UBL-CR, UBL-SR, UBL-DT), CEN EN 16931 validation artefacts 1.3.16
- Schwere: Fehler
- Gemeldet von
POST /einvoice/validateund unseren kostenlosen Prüfern, mit Verweis auf diese Seite
Die Meldung des Validators
UBL-DT-01 ist eine Regel der UBL-Syntaxregeln (UBL-CR, UBL-SR, UBL-DT) (CEN-Validierungsartefakte 1.3.16) für UBL. Sie ist ein Fehler (fatal): ein Validator weist die Rechnung zurück. Für diese Regel gibt es noch keine eigene Erklärung; die Seite wird nicht indexiert, bis sie eine hat.
[UBL-DT-01]-Amounts shall be decimal up to two fraction digitsDie Regel im Wortlaut
Wo die Regel ansetzt (context) und was gelten muss (test), unverändert aus CEN EN 16931 validation artefacts 1.3.16. Ein assert schlägt fehl, wenn sein Test falsch ist.
Wortlaut und Prüfung: © CEN/TC 434, EN-16931-Validierungsartefakte, EUPL 1.2. Zitiert ohne Änderung; die Erklärungen auf dieser Seite sind von Veriport.
context: //*[ends-with(name(), 'Amount') and not(ends-with(name(),'PriceAmount')) and not(ancestor::cac:Price/cac:AllowanceCharge)]
test: string-length(substring-after(.,'.'))<=2Eigene Rechnung prüfen
Laden Sie Ihre XRechnung, ZUGFeRD- oder Peppol-Datei im kostenlosen XRechnung-Prüfer hoch: er wendet dieselben Regeldateien an und verlinkt bei jedem Befund die Seite der Regel. Für Ihre Software: POST /einvoice/validate (Referenz) liefert dieselbe Prüfung als JSON, jeder Befund mit dem Feld explanation, das auf diese Seiten zeigt (5 Aufrufe je Prüfung, ohne Schlüssel im Tageskontingent).
Sources
- EN 16931 validation artefacts 1.3.16 (UBL and CII schematron, the business rules BR-*) — CEN/TC 434, published with the European Commission (Connecting Europe), consulted 2026-10-28
- EN 16931 validation artefacts: licence, European Union Public Licence (EUPL) v1.2 (LICENSE.txt, the README « License » section and the release notes of validation-1.3.16) — European Commission (Connecting Europe), for CEN/TC 434, consulted 2026-11-17. The EUPL permits reproduction and communication to the public, with the licence, the copyright notices and the disclaimer kept; a modified copy must say so. The rule library quotes the rule ids and messages of the BR-*, UBL-* and CII-* rules unmodified, credits the artefacts and links the licence.