SECTION 01
The BR-CO-10 summation formula
EN 16931 rule BR-CO-10 verifies that the document-level sum of invoice line net amounts (BT-106) equals the exact sum of every individual line net amount (BT-131). Discrepancies usually happen when an ERP sums unrounded line totals (e.g. 3 * 33.3333 = 100.00) while printing 2-decimal rounded line amounts (33.33 + 33.33 + 33.33 = 99.99).
<!-- CII: BT-106 must equal sum of all BT-131 LineTotalAmount elements -->
<ram:SpecifiedTradeSettlementHeaderMonetarySummation>
<ram:LineTotalAmount>1200.00</ram:LineTotalAmount>
</ram:SpecifiedTradeSettlementHeaderMonetarySummation>
SECTION 02
How to resolve line-level rounding drift
Always round each invoice line net amount (BT-131) to 2 decimal places first, and then compute BT-106 by summing those already-rounded line values. Never sum 4-decimal raw floats and round only at the header.
FAQ // TECHNICAL REFERENCE
Frequently Asked Questions
- Which XML elements does BR-CO-10 compare?
- In CII it compares SpecifiedTradeSettlementHeaderMonetarySummation/LineTotalAmount against the sum of SpecifiedTradeSettlementLineMonetarySummation/LineTotalAmount. In UBL it compares LegalMonetaryTotal/LineExtensionAmount against the sum of InvoiceLine/LineExtensionAmount.