PEPPOL-EN16931-R120: Line net amount is not quantity times price
Each line amount must follow from the quantity, the net price and its base quantity, with line allowances and charges.
- Severity
- Warning the invoice still passes, but the recipient may query it.
- Rule set
- Peppol BIS Billing 3.0.21 (OpenPeppol); XRechnung 3.0.2 (KoSIT)
- Where it applies
- Peppol BIS Billing 3.0
- XRechnung 3.0 in UBL and CII (Germany)
Official rule text
Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount
What the rule checks
The rule computes quantity × (net price ÷ base quantity) + line charges − line allowances and compares it with cbc:LineExtensionAmount. The difference may be at most 0.02 (0.5 for invoices in HUF).
In Peppol BIS Billing 3.0 the rule is an error; in the XRechnung 3.0.2 rules it is a warning. The base quantity (cbc:BaseQuantity in cac:Price) is the most common trap: a price per 100 pieces needs BaseQuantity 100.
Common causes
- The price is stated per 100 or per 1000 units, but the base quantity is missing or 1.
- The line amount is rounded to whole units or includes a discount that is not written as a line allowance.
- The net price is written with too few decimals to reproduce the line amount.
How to fix it
Make the line consistent: write the price with its real base quantity, express line discounts as cac:AllowanceCharge on the line, and compute the line amount from those values.
The unit code of the base quantity must be the same as that of the invoiced quantity (PEPPOL-EN16931-R130).
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">250</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">3125.00</cbc:LineExtensionAmount>
<!-- cac:Item … -->
<cac:Price>
<cbc:PriceAmount currencyID="EUR">12.50</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine><cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="H87">250</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">31.25</cbc:LineExtensionAmount>
<!-- cac:Item … -->
<cac:Price>
<cbc:PriceAmount currencyID="EUR">12.50</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="H87">100</cbc:BaseQuantity>
</cac:Price>
</cac:InvoiceLine>UBL excerpts; elements that play no part in the rule are left out.
Can the fix page repair it?
Yes, once you supply the value and confirm it. You enter the correct value; because it changes amounts or VAT data, it is applied only after you confirm. Fields inside lists go into the free field with an index, as shown below.
Field on the fix page: lines[0].netAmount
Check your invoice against the official rules
Upload an XML or PDF invoice. You get every failing rule with an explanation, the fix and the line in the file. Free, without sign-up; the check on this page stores nothing.
Processed in memory and not stored. No sign-up needed.
E-Invoicing API