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
- A line filtered out of the serialized output but still counted in the total
- Totals computed from an order rather than from the invoice lines actually emitted
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-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-om-1.0.1 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-ae-2026.5 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-eu-1.1.1 | pint-base | error | billing/creditnote, billing/invoice |
| pint-ae-2026.3 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
| pint-om-1.0.0 | pint-base | error | billing/creditnote, billing/invoice, self-billing/creditnote, self-billing/invoice |
Related rules
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