PEPPOL-EN16931-R130
The unit of the price base quantity must be the same as the unit of the invoiced quantity. Price and quantity have to measure the same thing, or the line amount cannot be recalculated.
- Severity
- Error
- Applies to
- CII, UBL
- Rule set
- v2026-01-31
Official rule text
Unit code of price base quantity MUST be same as invoiced quantity.
Why does PEPPOL-EN16931-R130 happen?
Quantity and price come from different sources: the quantity from the order, the price base quantity from the item master. Where the master is kept in kilograms and the order is placed in pieces, two different units meet.
How do you fix PEPPOL-EN16931-R130?
Set the unitCode attribute of cac:Price/cbc:BaseQuantity to match that of cbc:InvoicedQuantity, or convert the price to the invoiced unit beforehand. The same applies to ram:BasisQuantity and ram:BilledQuantity in CII.
In the XML
A UBL fragment. The CII path is named above — same change, different element names.
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="KGM">1</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine><cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">100.00</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="C62">1</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine>NormAPI provides technical validation, not tax or legal advice.