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

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-packLayerSeverityApplies to
pint-eu-1.1.1en16931errorbilling/creditnote, billing/invoice

Related rules

UBL-DT-01 · ibr-091

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