einvoiceconverter.come-invoice error codes

BR-CO-10

The sum of line net amounts (BT-106) does not equal the total of the individual line amounts (BT-131).

ErrorEN 16931UBLCII

Why it happens

Almost always a rounding difference: each line was rounded to 2 decimals but the total was computed from unrounded values, or vice versa.

How to fix it

Round every line net amount to 2 decimals first, then sum the rounded values into BT-106. Never sum first and round afterwards.

The official rule

EN 16931, EnglishSum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).
Technical detail — where the rule is evaluated and the exact test
SyntaxContext and assertion
UBLcac:LegalMonetaryTotal
(xs:decimal(cbc:LineExtensionAmount) = xs:decimal(round(sum(//(cac:InvoiceLine|cac:CreditNoteLine)/xs:decimal(cbc:LineExtensionAmount)) * 10 * 10) div 100))
CII//ram:SpecifiedTradeSettlementHeaderMonetarySummation
xs:decimal(ram:LineTotalAmount) = round(xs:decimal(sum(../../ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount)) * xs:decimal(100)) div xs:decimal(100)

Check your own invoice

Paste or drop your UBL or CII file into the free validator. It runs the official EN 16931 ruleset plus the German XRechnung layer and lists every rule that fires, BR-CO-10 included — no signup, no limit.

Validate an e-invoice free

Fixing the data at source instead? The CSV converter builds a compliant invoice from a spreadsheet export.

Other EN 16931 — calculations and conditions rules