BR-CO-10: The sum of lines does not match the lines
This code shows up when an electronic invoice is validated. Here is what it means, why it fires, and what to change in the file.
Why this code appears
The sum of line net amounts (BT-106) differs from the total of the individual line net amounts (BT-131). One line left out of the addition, or a line amount edited afterwards, is enough to have the whole invoice rejected.
How to fix it
Recalculate BT-106 as the exact sum of the BT-131 values, rounded to the cent once, at the end.
Where it happens
This code comes from EN 16931, the European e-invoicing standard. It concerns business term BT-106.