All rules · en16931 · error
BR-DEC-18
The amount due for payment must have at most two decimal places.
Reviewed
Why this rule exists
It is the number the buyer actually pays, and a third decimal cannot be transferred.
Why it usually happens
- An unrounded total reaching the serializer
How to fix it
Round the payable amount to two decimals as the final step before serializing.
The official rule
The allowed maximum number of decimals for the Amount due for payment (BT-115) is 2.
Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.
Schematron test
string-length(substring-after(cbc:PayableAmount,'.'))<=2
Applied to nodes matching cac:LegalMonetaryTotal
Rule-pack versions
| Rule-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-eu-1.1.1 | en16931 | error | billing/creditnote, billing/invoice |
Related rules
Check your own invoice
Paste your XML and see every rule that fires, not just this one. Free, no sign-up, and we never store the document.
Open the validator