What it means
The check covers XML elements whose names end in Amount, except names ending in PriceAmount and amounts with a cac:Price ancestor that has a cac:AllowanceCharge child. It permits at most two characters after the decimal point. This covers the line amount excluding VAT (BT-131), the VAT amount (BT-117 and BT-110), the total amount including VAT (BT-112), the amount due (BT-115) and document-level and line-level discount and charge amounts. Values such as 10, 10.5 and 10.50 pass, while 10.125 and 10.500 fail. The unit price (BT-146), the item price discount (BT-147) and the item gross price (BT-148) are outside this check.
Why it matters
EN 16931 limits the amounts covered by this rule to two decimal places.
How to fix it
Round every amount covered by this rule to two decimals in your invoicing software, not only on screen, and export again. Check the line amounts first, especially those calculated from quantities and unit prices with several decimals. Do not round the unit price (BT-146), item price discount (BT-147) or item gross price (BT-148) solely to satisfy this rule. If you build the XML yourself, write each affected amount with at most two decimals, for example 10.13 and not 10.125, and calculate the totals from the rounded line amounts. Recheck the exported file.
Once the file is corrected, check it again for free: Validate an invoice against EN 16931
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice
The rule as published
Amounts shall be decimal up to two fraction digits Where this rule applies
| Rule set | Version |
|---|---|
| EN 16931 (UBL) | 1.3.17 |
| EN 16931 (UBL credit note) | 1.3.17 |
| XRechnung 3.0 (UBL) | 3.0.2 |
| XRechnung 3.0 (UBL credit note) | 3.0.2 |
| Peppol BIS Billing 3.0 (invoice) | 2026.5 |
| Peppol BIS Billing 3.0 (credit note) | 2026.5 |
| SI-UBL 2.0 / NLCIUS (invoice) | 2.0.3.13 |
| SI-UBL 2.0 / NLCIUS (credit note) | 2.0.3.13 |
| France CTC (UBL invoice) | 1.4.0-04 |
| France CTC (UBL credit note) | 1.4.0-04 |
| CIUS-RO UBL Invoice 1.0.9 | 1.0.9 |
| CIUS-RO UBL Credit Note 1.0.9 | 1.0.9 |
Check your file
Drop your e-invoice to see whether UBL-DT-01 still fails, and which other rules do.
Related rules
- UBL-DT-06 An embedded attachment needs a MIME code attribute
- UBL-DT-07 An embedded attachment needs a file name attribute
- UBL-DT-08 Leave out the schemeName attribute
- UBL-DT-09 Leave out the schemeAgencyName attribute
- UBL-DT-10 Leave out the schemeDataURI attribute
- UBL-DT-11 Leave out the schemeURI attribute