Key points
- PEPPOL-EN16931-R120 is fatal: line net amount (BT-131) must equal quantity x (net price / base quantity) + line charges - line allowances, within 0.02.
- The most common cause is a discount taken off the line amount but not shown as a line allowance or price discount.
- Prices per 100 or 1,000 need cbc:BaseQuantity; without it the line is out by a factor of 1,000.
- The unit price may have more than 2 decimals, but the line net amount may not (BR-DEC-23).
- Rounded quantities such as 0.33 hours can push a line outside the 0.02 tolerance; bill in minutes or use base quantity instead.
PEPPOL-EN16931-R120 means an invoice line's net amount does not match its own quantity, price and line-level discounts or charges. The rule is fatal and allows only 0.02 of difference. Most failures come from a discount taken off the line total without being shown, a price per 1,000 sent without a base quantity, or a rounded quantity.
The rule
The message, as published in BIS 3.0.21:
"[PEPPOL-EN16931-R120]-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"
The test, run on every cac:InvoiceLine and cac:CreditNoteLine:
u:slack($lineExtensionAmount,
($quantity * ($priceAmount div $baseQuantity)) + $chargesTotal - $allowancesTotal,
0.02)
where u:slack passes if the two values differ by no more than 0.02, and:
| Variable | UBL element | Default if missing |
|---|---|---|
$lineExtensionAmount |
cbc:LineExtensionAmount (BT-131) |
0 |
$quantity |
cbc:InvoicedQuantity (BT-129) |
1 |
$priceAmount |
cac:Price/cbc:PriceAmount (BT-146, net price) |
0 |
$baseQuantity |
cac:Price/cbc:BaseQuantity (BT-149) |
1 (also if 0) |
$allowancesTotal |
sum of line cac:AllowanceCharge with false, rounded to 2 dp |
0 |
$chargesTotal |
sum of line cac:AllowanceCharge with true, rounded to 2 dp |
0 |
Note that PriceAmount is the net price. A price-level discount is already inside it. Document-level allowances and charges are not part of R120.
What we tested
Each case is a one-line UK invoice run through the BIS 3.0.21 rules:
| Line | Line amount sent | Result |
|---|---|---|
| 1,250 × £0.0125 | 15.63 | Passes (15.625, within 0.02) |
| 1,250 × £0.0125 | 15.60 | R120 (0.025 out) |
| 1,250 × £12.50 per 1,000 (BaseQuantity 1000) | 15.63 | Passes |
| 1,250 × £12.50, no BaseQuantity | 15.63 | R120 (expects 15,625.00) |
| 3 HUR × £65.00, line allowance £19.50 | 175.50 | Passes |
| 3 HUR × £65.00, no allowance | 175.50 | R120 (hidden discount) |
| 3 HUR × net £58.50 (gross £65.00 less £6.50) | 175.50 | Passes |
| 0.33 HUR × £65.00 | 21.67 | R120 (expects 21.45) |
| 20 MIN × £1.0833 | 21.67 | Passes |
| 1,250 × £0.0125 | 15.625 | BR-DEC-23 and others (3 decimals) |
We also confirmed the hidden-discount case in the public Peppol validation service at peppol.helger.com.
Fix 1: show the discount
If your ERP gives 10% off three hours at £65, the line must say so. Either a line allowance:
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="HUR">3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="GBP">175.50</cbc:LineExtensionAmount>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
<cbc:MultiplierFactorNumeric>10</cbc:MultiplierFactorNumeric>
<cbc:Amount currencyID="GBP">19.50</cbc:Amount>
<cbc:BaseAmount currencyID="GBP">195.00</cbc:BaseAmount>
</cac:AllowanceCharge>
<cac:Item><!-- name and ClassifiedTaxCategory --></cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="GBP">65.00</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
or a discounted net price with the gross price shown:
<cac:Price>
<cbc:PriceAmount currencyID="GBP">58.50</cbc:PriceAmount>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
<cbc:Amount currencyID="GBP">6.50</cbc:Amount>
<cbc:BaseAmount currencyID="GBP">65.00</cbc:BaseAmount>
</cac:AllowanceCharge>
</cac:Price>
With the second pattern, R046 requires net price = gross price minus the price allowance, and R044 forbids price-level charges. Line allowances also need a reason (BR-42). More in discounts and charges in Peppol.
Fix 2: use base quantity for prices per 100 or 1,000
Fasteners, labels, print and packaging are often priced per 1,000. Send the price as quoted and say what it is per:
<cbc:InvoicedQuantity unitCode="C62">1250</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="GBP">15.63</cbc:LineExtensionAmount>
<!-- ... -->
<cac:Price>
<cbc:PriceAmount currencyID="GBP">12.50</cbc:PriceAmount>
<cbc:BaseQuantity unitCode="C62">1000</cbc:BaseQuantity>
</cac:Price>
The base quantity's unit must match the invoiced quantity (R130) and must be above zero (R121). See Peppol unit codes.
Fix 3: do not round the price or quantity
PriceAmount is excluded from the 2-decimal amount rule (UBL-DT-01 skips elements ending in PriceAmount), so send the real unit price, such as 0.0125. Rounding it to 0.01 makes 10,000 units come to £100.00 instead of £125.00. The line amount itself must be rounded to 2 decimals (BR-DEC-23: "The allowed maximum number of decimals for the Invoice line net amount (BT-131) is 2.").
Rounded quantities cause the same problem. A third of an hour sent as 0.33 HUR at £65 is £21.45, not £21.67. Bill time in minutes, or invoice the agreed fixed amount as quantity 1.
Fix 4: check credit notes and negative lines
R120 applies to credit note lines too, using cbc:CreditedQuantity. For a negative invoice line, the quantity carries the sign, not the price; BR-27 says the net price "shall NOT be negative". See credit notes in Peppol.
Knock-on errors
If you fix R120 by changing the line amount, recheck the header: BR-CO-10 (sum of line amounts), BR-S-08 (VAT breakdown taxable amount) and BR-CO-15 (totals). See our BR-CO-15 guide and VAT rounding in Peppol.
UK status
R120 is a Peppol rule, not an EN 16931 or HMRC rule. A future UK specification might keep, change or drop it; that is not yet confirmed. HMRC's own requirement is that the invoice shows the quantity, unit price and amount excluding VAT for each description (VAT Notice 700, 16.3.1), which this rule helps keep consistent.
What to do now
- Find where your ERP applies discounts and make sure they appear as allowances.
- Map "price per" fields to BaseQuantity.
- Keep full precision on unit prices.
- Re-test with a Peppol validator.
Related: common Peppol validation errors.
Frequently asked questions
What does PEPPOL-EN16931-R120 mean?
"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". If the line amount differs from that calculation by more than 0.02, the invoice is rejected.
Is there a rounding tolerance in R120?
Yes, 0.02 in either direction. For example 1,250 x £0.0125 = £15.625, so a line amount of £15.63 passes but £15.60 fails.
How do I show a line discount without failing R120?
Either add a line-level cac:AllowanceCharge with ChargeIndicator false, or show a gross price with a price-level allowance so the net price is already discounted. Do not just reduce LineExtensionAmount.
Can the unit price have more than two decimals?
Yes. The item net price (PriceAmount) is excluded from the 2-decimal amount rule. The line net amount (BT-131) must have at most 2 decimals (BR-DEC-23).
Spotted a mistake? Report an error. einvoices.uk is an independent publication and is not affiliated with HMRC. Details of the mandate may change; check the sources and official GOV.UK guidance before acting.