Back to the error catalogue
BR-CO-12BT-108
blocked

The total of charges does not match the charges declared

The sum of charges on document level (BT-108) must equal the sum of each document level charge amount (BT-99).

A financial field: the expected value is computed and offered, never written into the document — the correction is the issuer's to make. Test your invoice to find out whether it is affected.

The message your validator prints

Copied verbatim from the sealed artefact: this is the exact sentence the check prints when this rule fails.

[BR-CO-12]-Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99).

Quoted from schematron-cen 1.3.16, licensed under EUPL-1.2.

Common searches around this code

These phrases mirror what an integrator searches for: code, syntax, rule, business field and correction.

BR-CO-12 The total of charges does not match the charges declaredBR-CO-12 CEN EN 16931 SchematronBR-CO-12 BT-108[BR-CO-12]-Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99).BR-CO-12 correction

Test your file with this error in mind

Upload the invoice involved: the report will say whether this code appears, where it appears in the document, and whether Factlint can only report it or also fix it.

To automate this check in an ERP flow, call the validation API and link every returned code to its public page.

Why this error happens

Freight is the textbook case: computed by the carrier, added to the total by one module, then detailed as BG-21 by another — with a rounding or an included VAT on one side and not the other.

How to fix it

Fix the calculation in the system that produced the invoice, not in the file. Factlint computes the expected value and returns it in `suggested_value`, but never writes the field.

Reason it is blocked:

financial_field_policy

XML correction example

BEFORE (invalid)
<ram:ChargeTotalAmount>15.00</ram:ChargeTotalAmount>  <!-- frais : 12.50 -->
AFTER (compliant)
<ram:ChargeTotalAmount>12.50</ram:ChargeTotalAmount>