# UBL-DT-01

Source: https://xmlvalid.com/rules/UBL-DT-01

> Amounts shall be decimal up to two fraction digits

- Level: error
- Rule sets: EN 16931 rules (UBL) 1.3.17, EN 16931 rules 1.3.16 (UBL), EXTENDED-CTC-FR rules (UBL) 1.4.0.04, Romanian RO e-Factura rules (UBL) 1.0.9
- Context: `//*[ends-with(name(), 'Amount') and not(ends-with(name(),'PriceAmount')) and not(ancestor::cac:Price/cac:AllowanceCharge)]`
- Test: `string-length(substring-after(.,'.'))<=2`

Validate a document against these rules: https://xmlvalid.com/validate
