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
- Add up only the document level charges and use the result as BT-108.
- Charges on a line are already part of that line's net amount and do not belong in BT-108.
- Create the invoice again and check the new file.
Where the fields are in the XML
BT-108Sum of charges on document level- UBL
cac:LegalMonetaryTotal/cbc:ChargeTotalAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:ChargeTotalAmount
BT-99Document 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:.