InvoiceIn
Language: EN

BR-CO-10

EN 16931 · validation rule

EN 16931Error
Sum of line net amounts (BT-106) must equal the sum of each line's net amount (BT-131). One or more lines were changed after the totals were computed, or a line is missing from the total; recompute cac:LegalMonetaryTotal/cbc:LineExtensionAmount / ram:LineTotalAmount.
Field
totals.line_net (BT-106)
Rule set
EN 16931
Rule-set version
EN 16931 validation artefacts 1.3.17 · in force since · Rule-set changelog
Who has to fix it
The sender

This is a property of the file you received, so it cannot be corrected on your side without changing the document — ask the supplier to reissue it.

Worked example · UBL

The two lines add up to 288.79 + 26.07 = 314.86, so BT-106 must say 314.86, not 300.00.

Fails this rule
<cac:LegalMonetaryTotal>
  <cbc:LineExtensionAmount currencyID="EUR">300.00</cbc:LineExtensionAmount>
  <cbc:TaxExclusiveAmount currencyID="EUR">314.86</cbc:TaxExclusiveAmount>
  <cbc:TaxInclusiveAmount currencyID="EUR">336.90</cbc:TaxInclusiveAmount>
  <cbc:PayableAmount currencyID="EUR">336.90</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
Passes
<cac:LegalMonetaryTotal>
  <cbc:LineExtensionAmount currencyID="EUR">314.86</cbc:LineExtensionAmount>
  <cbc:TaxExclusiveAmount currencyID="EUR">314.86</cbc:TaxExclusiveAmount>
  <cbc:TaxInclusiveAmount currencyID="EUR">336.90</cbc:TaxInclusiveAmount>
  <cbc:PayableAmount currencyID="EUR">336.90</cbc:PayableAmount>
</cac:LegalMonetaryTotal>

Worked example · CII

Fails this rule
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:LineTotalAmount>300.00</ram:LineTotalAmount>
  <ram:TaxBasisTotalAmount>314.86</ram:TaxBasisTotalAmount>
  <ram:TaxTotalAmount currencyID="EUR">22.04</ram:TaxTotalAmount>
  <ram:GrandTotalAmount>336.90</ram:GrandTotalAmount>
  <ram:DuePayableAmount>336.90</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
Passes
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
  <ram:LineTotalAmount>314.86</ram:LineTotalAmount>
  <ram:TaxBasisTotalAmount>314.86</ram:TaxBasisTotalAmount>
  <ram:TaxTotalAmount currencyID="EUR">22.04</ram:TaxTotalAmount>
  <ram:GrandTotalAmount>336.90</ram:GrandTotalAmount>
  <ram:DuePayableAmount>336.90</ram:DuePayableAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>

Check your own invoice

Drop the file that failed. We parse it, run the official rule sets against it and list every finding with a fix — 20 invoices per day, no key, nothing stored.

Open the live demo

Same explanation over the API: GET /v1/rules/BR-CO-10?lang=en