Skip to content
Klarfile

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.

What it looks like in the file

These two snippets are replayed against our own checker on a complete invoice, every time the site is built. The first one raises this code, the second one does not.

What raises the code:

<ram:LineTotalAmount>900.00</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>

What to write instead:

<ram:LineTotalAmount>1000.00</ram:LineTotalAmount>
<ram:TaxBasisTotalAmount>

Where it happens

This code comes from EN 16931, the European e-invoicing standard. It concerns business term BT-106.

Check my invoice All rejection codes