Error codes

BR-CO-10: Sum of invoice line net amounts (BT-106)

Severity: fatal · Syntax: CII, UBL

Official message

Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).

What this means

BT-106 must equal the sum of line net amounts BT-131. The UBL assertion compares cbc:LineExtensionAmount with the sum of the line LineExtensionAmount values, rounded to two decimal places (round(sum × 100) div 100). Official text: Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).

Typical cause

A line is missing from the sum, or header and lines were rounded differently.

How to fix it

Calculate the named BT fields in the same currency and set the header amounts to the result of the assertion. The check helps you find the difference.

UBL

<cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>

CII

<ram:LineTotalAmount>100.00</ram:LineTotalAmount>

Business term

BT-106, BT-131

Related rules

Context and assertion

UBL cac:LegalMonetaryTotal

CII //ram:SpecifiedTradeSettlementHeaderMonetarySummation

UBL

(xs:decimal(cbc:LineExtensionAmount) = xs:decimal(round(sum(//(cac:InvoiceLine|cac:CreditNoteLine)/xs:decimal(cbc:LineExtensionAmount)) * 10 * 10) div 100))

CII

xs:decimal(ram:LineTotalAmount) = round(xs:decimal(sum(../../ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount)) * xs:decimal(100)) div xs:decimal(100)

Check a file now, free of charge

curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate

Questions

What does BR-CO-10 actually check?

BT-106 must equal the sum of line net amounts BT-131. The UBL assertion compares cbc:LineExtensionAmount with the sum of the line LineExtensionAmount values, rounded to two decimal places (round(sum × 100) div 100). Official text: Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).

How do I fix BR-CO-10?

Calculate the named BT fields in the same currency and set the header amounts to the result of the assertion. The check helps you find the difference.

If BR-CO-10 passes, is the invoice legally compliant?

No. This page helps you read this one Schematron assertion. A pass is not a statement about tax law, portal acceptance, or bank overlays.