# PEPPOL-T01-R028

Source: https://xmlvalid.com/rules/PEPPOL-T01-R028

> Elements of data type amount cannot have more than 2 decimals (I.e. all amounts except unit price amounts)

- Level: error
- Rule sets: Peppol Order rules 3.7
- Context: `cbc:Amount | cbc:TaxAmount | cbc:LineExtensionAmount | cbc:PriceAmount | cbc:BaseAmount | cac:AnticipatedMonetaryTotal/cbc:*`
- Test: `ancestor::node()/local-name() = 'Price' or string-length(substring-after(., '.')) <= 2`

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