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
- Quoting a price per 100 units while invoicing in a different unit
- Defaulting the base quantity unit to a constant
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-pack | Layer | Severity | Applies to |
|---|---|---|---|
| pint-eu-1.1.1 | pint-eu | error | billing/creditnote, 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