InvoiceGlass

Amount has more than two decimal places · UBL-DT-01

  • Severity · Error
  • Applies to · UBL
  • Editorial review pending

The UBL check counts digits after the decimal point in elements whose names end in Amount. It exempts names ending in PriceAmount and amounts under an item price allowance or charge.

As of

Who can correct it?

The invoicing software provider can correct the export.

How to fix it

  1. Find the specific amount in the validation report.
  2. Confirm the accounting rounding in your invoicing software, export the amount with at most two decimal places, and check the affected totals.

Rule text and source

Paraphrase · The test allows at most two characters after the decimal point in the checked Amount elements. It excludes names ending in PriceAmount and descendants of cac:Price/cac:AllowanceCharge.

Message to the sender

Hello,

rule UBL-DT-01 was triggered when checking electronic invoice {invoiceNumber}. One amount in the XML has more than two decimal places. Could you check the export and send us a corrected file?

Kind regards

Example

The value 12.340 in cbc:TaxAmount triggers the rule. The same amount written as 12.34 meets the limit.

UBL

cac:TaxTotal/cbc:TaxAmount

Fails the rule
<cbc:TaxAmount currencyID="EUR">12.340</cbc:TaxAmount>

Corrected
<cbc:TaxAmount currencyID="EUR">12.34</cbc:TaxAmount>

Rule versions

CEN · EN 16931 (KoSIT) 1.3.16

CEN · EN 16931 1.3.17

Validate a file