BR-23: An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130)
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).
exists(cbc:InvoicedQuantity/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)BR-23 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-130.
What this rule requires
The rule requires each invoice line or credit note line to carry a unit of measure code for its invoiced quantity. In UBL, this means the cbc:InvoicedQuantity or cbc:CreditedQuantity element must have a @unitCode attribute; at least one of these attributes must be present. In CII, the ram:BilledQuantity element under ram:SpecifiedLineTradeDelivery must have a @unitCode attribute. A document is rejected when none of the required quantity elements in the line has a @unitCode attribute.
How to fix
Add a unitCode attribute to the line’s quantity element: in UBL use cbc:InvoicedQuantity for an invoice line or cbc:CreditedQuantity for a credit note line, and set it to a valid unit of measure code. In CII, set the @unitCode attribute on ram:BilledQuantity. If the quantity element itself is missing, add it with the unit code.
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-23.
Validate an invoice against these rules · All release changes