INVOICE ERROR GUIDE

Fix BR-CO-10: line totals do not add up.

BR-CO-10 checks that the invoice line extension amount equals the sum of the line net amounts. It is a calculation consistency rule: the amount is before VAT and before document-level allowances or charges.

A small before-and-after example

Invoice linesBeforeAfter
Line 1 · 2 × €40.00€80.00€80.00
Line 2 · 1 × €15.00€15.00€15.00
Sum of line net amounts€95.00€95.00
LegalMonetaryTotal/LineExtensionAmount€100.00€95.00

Before: the document declares a line-extension total of €100.00, but its lines sum to €95.00, so BR-CO-10 fails. After: set the line-extension total to €95.00. Document-level charges and allowances belong in their own totals.

What to check in UBL

ApiVect reports stable rule codes and validation stages. A BR-CO-10 finding does not by itself say anything about VAT registration or tax treatment.

Validate a private invoice ↗ Read the Invoice API