All rules · pint-base · error

ibr-co-10

The sum of line net amounts must equal the total of all the individual invoice line amounts.

Reviewed

Why this rule exists

It is the link between the lines and the totals. When it fails, one of the two was computed from a source the other did not see.

Why it usually happens

How to fix it

Sum the lines you are about to serialize, at the point of serialization.

The official rule

Sum of Invoice line net amount (ibt-106) = Σ Invoice line net amount (ibt-131).

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

Schematron test

(xs:decimal(cbc:LineExtensionAmount) = (round(sum(//(cac:InvoiceLine|cac:CreditNoteLine)/xs:decimal(cbc:LineExtensionAmount)) * 10 * 10) div 100))

Applied to nodes matching cac:LegalMonetaryTotal

Rule-pack versions

Rule-packLayerSeverityApplies to
pint-om-1.0.1pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-ae-2026.5pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-eu-1.1.1pint-baseerrorbilling/creditnote, billing/invoice
pint-ae-2026.3pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice
pint-om-1.0.0pint-baseerrorbilling/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice

Related rules

ibr-co-13 · 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