All rules · pint-eu · error

PEPPOL-EN16931-R130

The unit code of the price base quantity must match the unit code of the invoiced quantity.

Reviewed

Why this rule exists

The line amount is quantity times price-per-base-quantity. If the two units differ, the multiplication is comparing incompatible things.

Why it usually happens

How to fix it

Copy the invoiced quantity unit code onto the base quantity rather than defaulting it.

The official rule

Unit code of price base quantity MUST be same as invoiced quantity.

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

Schematron test

not($hasQuantity) or @unitCode = $quantity/@unitCode

Applied to nodes matching cac:Price/cbc:BaseQuantity[@unitCode]

Rule-pack versions

Rule-packLayerSeverityApplies to
pint-eu-1.1.1pint-euerrorbilling/creditnote, billing/invoice

Related rules

ibr-023 · ibr-147-ae

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