All rules · pint-om · error

IBR-063-OM

Charge amount (IBT-099, IBT-141) must equal base amount (IBT-100, IBT-142) * percentage (IBT-101, IBT-143) /100 if base amount and percentage exists

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

Charge amount (IBT-099, IBT-141) must equal base amount (IBT-100, IBT-142) * percentage (IBT-101, IBT-143) /100 if base amount and percentage exists

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

Schematron test

not(cbc:BaseAmount and cbc:MultiplierFactorNumeric)                             or                             (                                 cbc:Amount castable as xs:decimal                                 and cbc:BaseAmount castable as xs:decimal                                 and cbc:MultiplierFactorNumeric castable as xs:decimal                                 and                                 u:slack(                                     xs:decimal(cbc:Amount),                                      xs:decimal(                                         round(                                             (                                                 xs:decimal(cbc:BaseAmount)                                                 * xs:decimal(cbc:MultiplierFactorNumeric)                                                 div 100                                             ) * 100                                         ) div 100                                     ),                                      0.01                                 )                             )

Applied to nodes matching ubl:Invoice/cac:AllowanceCharge | cn:CreditNote/cac:AllowanceCharge

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