CRATEAPI

BR-CO-10

EN 16931 FATAL

The sum of line net amounts (BT-106) you declared does not equal the actual sum of all line net amounts (BT-131). One of the two sides is wrong - usually a rounding difference or a line changed after totals were computed.

How to fix it
  1. Recompute: BT-106 = Σ BT-131 over all invoice lines, each rounded to 2 decimals.
  2. Round per line first, then sum - summing raw values and rounding once gives a different result and fails this rule.
  3. Regenerate totals whenever any line changes.
Example
− Rejected
<LineExtensionAmount>874.99</LineExtensionAmount>
<!-- lines: 455.00 + 420.00 = 875.00 -->
+ Accepted
<LineExtensionAmount>875.00</LineExtensionAmount>
<!-- lines: 455.00 + 420.00 = 875.00 -->
Official rule text
Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).

Developers also reach this page searching for an “invoice validation error”, an “e-invoice rejected” message, or how to fix a failed EN 16931 compliance check — it's the same issue, explained above.

Fix it faster

Paste your invoice XML in our free validator - every finding comes with its rule ID. Then generate, convert and render compliant invoices through one API.

Related rules