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
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
- Sum every
InvoiceLine/LineExtensionAmount after applying each line's quantity and price. - Compare that sum with
LegalMonetaryTotal/LineExtensionAmount. - Keep currency identifiers consistent and use decimal arithmetic. EN16931 line net amounts allow at most two decimals.
- Recheck related totals such as tax-exclusive amount and payable amount after correcting the line total.
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