Calculations and conditions (BR-CO)Error
BR-CO-10 Sum of line amounts does not match
What BR-CO-10 means
The sum of invoice line net amounts (BT-106) must equal the net amounts of all lines (BT-131) added up, to the cent. In your file the total and the lines differ.
Error: the invoice is not valid until this is fixed.
Common causes
- A line was added, removed or changed after the total was calculated.
- The total was calculated from unrounded values while the lines are rounded to two decimals.
- Lines with a negative amount, such as credits, were left out of the sum.
How to fix BR-CO-10
- Add up the net amounts of all lines, each rounded to two decimals, and use the result as BT-106.
- Let the software calculate the totals instead of entering them by hand.
- Check the dependent totals (BR-CO-13 and BR-CO-15) again after the change.
Where the fields are in the XML
BT-106Sum of invoice line net amount- UBL
cac:LegalMonetaryTotal/cbc:LineExtensionAmount- CII
ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:LineTotalAmount
BT-131Invoice line net amount- UBL
cac:InvoiceLine/cbc:LineExtensionAmount- CII
ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeSettlement/ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount
UBL paths start below the Invoice element. CII paths start below rsm:SupplyChainTradeTransaction unless they begin with rsm:.