All rules · pint-om · error

IBR-DEC-03-OM

(covering IBR-088-OM, IBR-109-OM..IBR-135-OM) - All amount values (including BTOM-020 Total amount due in Profit Margin) MUST NOT contain more than 3 decimal places and the exchange rate by IBR-005-OM (7 decimals).

No plain-English explanation yet. We write these in order of how often they actually trip people up, and this one has not come up much. Tell us what tripped you up and it moves to the front of the queue.

The official rule

(covering IBR-088-OM, IBR-109-OM..IBR-135-OM) - All amount values (including BTOM-020 Total amount due in Profit Margin) MUST NOT contain more than 3 decimal places and the exchange rate by IBR-005-OM (7 decimals).

Verbatim from the published artefact. We execute the official Schematron unmodified, so this is exactly what an Access Point checks.

Schematron test

. castable as xs:decimal and xs:decimal(.) = round(xs:decimal(.) * 1000) div 1000

Applied to nodes matching cbc:Amount | cbc:BaseAmount | cbc:PriceAmount | cbc:LineExtensionAmount[not(parent::cac:LegalMonetaryTotal)] | cbc:TaxExclusiveAmount[not(parent::cac:LegalMonetaryTotal)] | cbc:TaxInclusiveAmount[not(parent::cac:LegalMonetaryTotal)] | cbc:AllowanceTotalAmount[not(parent::cac:LegalMonetaryTotal)] | cbc:ChargeTotalAmount[not(parent::cac:LegalMonetaryTotal)] | cbc:PrepaidAmount[not(parent::cac:LegalMonetaryTotal)] | cbc:PayableRoundingAmount[not(parent::cac:LegalMonetaryTotal)] | cbc:PayableAmount[not(parent::cac:LegalMonetaryTotal)] | cac:TaxTotal/cbc:TaxAmount[not(parent::cac:TaxTotal[parent::*[local-name()='Invoice' or local-name()='CreditNote']])] | cac:TaxTotal/cbc:TaxableAmount | cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount | cac:TaxTotal/cac:TaxSubtotal/cbc:TaxableAmount | cac:AdditionalDocumentReference[cbc:DocumentTypeCode='PM_TOTAL']/cbc:DocumentDescription

Rule-pack versions

Rule-packLayerSeverityApplies to
pint-om-1.0.1pint-omerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-om-1.0.0pint-omerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

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