BR-22 — Missing invoiced quantity
What it means
Each invoice line must state a quantity (BT-129). Without it, there's no way to check whether the line amount (quantity × price) was calculated correctly — that's why BR-22 is one of the basic checks that runs before the cross-field amount rules (e.g. PEPPOL-EN16931-R120).
Common causes
- The element is missing entirely from the XML — the accounting software doesn't export a quantity for service lines (this often happens when the line is a service rather than a good, and the system treats that as an "atypical" case).
- The quantity is given as text instead of a number — for example
"10 pcs"instead of10with a separate unit-of-measure code. - The quantity is 0 or blank — some systems default to an empty field
rather than
1unless the user explicitly changes it.
How to fix it
Check that each InvoiceLine has an InvoicedQuantity element filled in
with a numeric value and a valid unit-of-measure code in the unitCode
attribute. If the line is a service rather than a good, a quantity is
still required — typically 1 with unit EA (each) or HUR (hour),
depending on the type of service.
Example
Wrong: the InvoicedQuantity element is missing.
Correct: <cbc:InvoicedQuantity unitCode="HUR">10</cbc:InvoicedQuantity>.
See also BR-23 (unit-of-measure code) — the two errors often appear together, since quantity and unit come from the same field in the accounting software.