BR-CO-10: Sum of line net amounts does not match the lines
The document total of the line amounts must equal the sum of the line net amounts, to the cent.
- Severity
- Error the invoice fails validation.
- Rule set
- EN 16931 (CEN/TC 434)
- Where it applies
- EN 16931 invoices in UBL and CII, in every EU country
- XRechnung 3.0 in UBL and CII (Germany)
- Peppol BIS Billing 3.0
- ZUGFeRD / Factur-X, profile EN 16931 and above
- Business terms
- BT-106 Sum of Invoice line net amount · BT-131 Invoice line net amount
Official rule text
Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).
What the rule checks
The rule adds up cbc:LineExtensionAmount of every invoice line, rounds the sum to two decimals and compares it with cac:LegalMonetaryTotal/cbc:LineExtensionAmount. There is no tolerance: one cent off fails.
BT-106 is the basis for the other totals, so a wrong value here is often followed by BR-CO-13, BR-CO-15 and BR-CO-16.
Common causes
- Line amounts are rounded for the XML, but the total is taken from unrounded values in the software.
- A line was added, removed or changed after the totals were computed.
- Discounts on line level are subtracted from the total but not from the line amount.
How to fix it
Recompute BT-106 as the sum of the line net amounts as they appear in the file. Each line net amount must itself already include its line allowances and charges.
In CII the total is ram:LineTotalAmount in ram:SpecifiedTradeSettlementHeaderMonetarySummation.
<!-- invoice lines: cbc:LineExtensionAmount 100.00 and 50.00 -->
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">140.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">150.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">178.50</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">178.50</cbc:PayableAmount>
</cac:LegalMonetaryTotal><!-- invoice lines: cbc:LineExtensionAmount 100.00 and 50.00 -->
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">150.00</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">150.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">178.50</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">178.50</cbc:PayableAmount>
</cac:LegalMonetaryTotal>UBL excerpts; elements that play no part in the rule are left out.
Can the fix page repair it?
Yes, with your confirmation. The fix page proposes the recomputed amount from the invoice's own figures. Because it changes money, it is applied only after you confirm it, and the corrected file is validated again before you download it.
Field on the fix page: totals.lineNet
Repair a rejected invoiceGuide: BR-CO-16 and BR-CO-15 errors: why e-invoice totals don't add up
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