Skip to content
Klarfile

BR-DEC-20: More than two decimals on a VAT breakdown VAT amount

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

a VAT breakdown VAT amount (BT-117) is written with more than two decimal places. This is almost always a calculation copied out as the software produced it (a division, an exchange rate, a pro-rata discount), without the final rounding to the cent.

How to fix it

Round BT-117 to two decimals before writing it into the XML. Rounding the display is not enough: it is the value in the file that gets read. If rounding then unbalances a total, recalculate the total from the rounded values, not the other way round.

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:CalculatedAmount>200.000</ram:CalculatedAmount>

What to write instead:

<ram:CalculatedAmount>200.00</ram:CalculatedAmount>

Where it happens

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

Check my invoice All rejection codes