Calculations and conditions (BR-CO)Error

BR-CO-12 Sum of charges does not match

What BR-CO-12 means

The sum of charges on document level (BT-108) must equal the amounts of all document level charges (BT-99) added up.

Error: the invoice is not valid until this is fixed.

Common causes

  • A charge, for example shipping, was added without updating the total.
  • Charges on individual lines were counted in the document total.

How to fix BR-CO-12

  1. Add up only the document level charges and use the result as BT-108.
  2. Charges on a line are already part of that line's net amount and do not belong in BT-108.
  3. Create the invoice again and check the new file.

Where the fields are in the XML

  • BT-108 Sum of charges on document level

    UBL
    cac:LegalMonetaryTotal/cbc:ChargeTotalAmount
    CII
    ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:ChargeTotalAmount
  • BT-99 Document level charge amount

    UBL
    cac:AllowanceCharge/cbc:Amount
    CII
    ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ActualAmount

UBL paths start below the Invoice element. CII paths start below rsm:SupplyChainTradeTransaction unless they begin with rsm:.

Based on the EN 16931 business rules (CEN/TC 434) and the XRechnung 3.0 rules published by KoSIT. This page explains the rules in plain language and is not legal or tax advice.