# UBL-DT-01

Quoted from a public specification. This page is not a validator, and it is not tax, legal, or accounting advice.

- Country: EU
- Syntax: UBL
- Severity: fatal
- Statement language: en
- Last verified: 2026-10-18

## Official statement

> Amounts shall be decimal up to two fraction digits

Source: https://docs.peppol.eu/poacc/billing/3.0/rules/ubl-tc434/UBL-DT-01/

Peppol BIS Billing 3.0, May 2026 release, EN 16931 model bound to UBL

Severity note: fatal, from the Flag column of the Peppol BIS Billing 3.0 UBL rules index retrieved 2026-10-18.

## Plain-language reading

Amounts shall be decimals with at most two fraction digits. The statement has no period and says shall. It is 50 characters. The flag is fatal. The context starts with //. It keeps a space before the quoted Amount and writes PriceAmount with no space before the quote. It excludes an ancestor cac:Price/cac:AllowanceCharge. The published test reads the string length after a quoted period and writes <=2 with no space before <=. It does not call count and it does not call exists.

## What to change

Send amounts other than a price amount with at most two digits after the decimal point.

## Illustration

Illustration of the condition in the official statement. Not an example published by the source.

**Fails the stated condition.** An amount that is not a price amount has three digits after the decimal point.

**Passes the stated condition.** An amount that is not a price amount has two digits after the decimal point, or fewer.

## Published context and test

Copied from the source. Not reimplemented on this page.

```
//*[ends-with(name(), 'Amount') and not(ends-with(name(),'PriceAmount')) and not(ancestor::cac:Price/cac:AllowanceCharge)]
```

```
string-length(substring-after(.,'.'))<=2
```

[All rule notes](https://einvoicegoblin.com/rules/index.md) · [JSON](https://einvoicegoblin.com/rules/UBL-DT-01.json) · [HTML](https://einvoicegoblin.com/rules/UBL-DT-01/) · [llms.txt](https://einvoicegoblin.com/llms.txt) · [Invoice page](https://einvoicegoblin.com/) · [Privacy](https://einvoicegoblin.com/privacy.html)
