BR-22: Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129)
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-22]-Each Invoice line (BG-25) shall have an Invoiced quantity (BT-129).
exists(cbc:InvoicedQuantity) or exists(cbc:CreditedQuantity)BR-22 is a fatal rule in the business layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected. It refers to BG-25, BT-129.
What this rule requires
BR-22 is fatal: each line item must include a quantity element. In UBL, a cac:InvoiceLine or cac:CreditNoteLine must have at least one of cbc:InvoicedQuantity or cbc:CreditedQuantity. In CII, each ram:IncludedSupplyChainTradeLineItem must contain ram:SpecifiedLineTradeDelivery/ram:BilledQuantity. The message names Invoiced quantity BT-129, but the UBL test also accepts the credited quantity element for credit note lines, and the CII test uses the element named BilledQuantity.
How to fix
In UBL, add cbc:InvoicedQuantity (or cbc:CreditedQuantity on a credit note line) to the line with the quantity value. In CII, add ram:SpecifiedLineTradeDelivery/ram:BilledQuantity under the line item.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to BR-22.
Validate an invoice against these rules · All release changes