BR-CO-10 Formula & XML Element Mapping (UBL 2.1 vs CII)
| Business Term | UBL 2.1 XPath | Factur-X CII XPath | BR-CO-10 Role |
|---|---|---|---|
| BT-106 (Header Sum) | /Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount | //ram:SpecifiedTradeSettlementHeaderMonetarySummation/ram:LineTotalAmount | Left-hand side (must equal Σ BT-131) |
| BT-131 (Line Net) | /Invoice/cac:InvoiceLine/cbc:LineExtensionAmount | //ram:SpecifiedTradeSettlementLineMonetarySummation/ram:LineTotalAmount | Each line summed on right-hand side |
| BT-107 (Doc Allowance) | /Invoice/cac:LegalMonetaryTotal/cbc:AllowanceTotalAmount | //ram:AllowanceTotalAmount | NOT subtracted from BT-106 (subtracted in BT-109!) |
| BT-108 (Doc Charge) | /Invoice/cac:LegalMonetaryTotal/cbc:ChargeTotalAmount | //ram:ChargeTotalAmount | NOT added to BT-106 (added in BT-109!) |
Before vs After: Fixing BR-CO-10 in Peppol BIS 3.0 UBL 2.1
<!-- BROKEN: Line 1 (800.00) + Line 2 (350.00) = 1150.00, but BT-106 says 1200.00 -->
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">1200.00</cbc:LineExtensionAmount> <!-- FAILS BR-CO-10 -->
<cbc:TaxExclusiveAmount currencyID="EUR">1200.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">1452.00</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">1452.00</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<!-- FIXED: BT-106 matches sum(BT-131) = 1150.00, Tax recalculated at 21% = 241.50 -->
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">1150.00</cbc:LineExtensionAmount> <!-- PASSES BR-CO-10 -->
<cbc:TaxExclusiveAmount currencyID="EUR">1150.00</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">1391.50</cbc:TaxInclusiveAmount>
<cbc:PayableAmount currencyID="EUR">1391.50</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
Top 3 Root Causes of BR-CO-10 in Real ERPs
1. Rounding drift from 4-decimal prices: Computing line amounts at 4 decimals and rounding only at the header causes a €0.01–€0.02 discrepancy. EN 16931 requires rounding each line BT-131 to 2 decimals first, then summing the rounded line totals to produce BT-106.
2. Putting document-level discounts into BT-106: Header discounts belong in BT-107 AllowanceTotalAmount and are subtracted when calculating BT-109 TaxExclusiveAmount (BR-CO-13), never inside BT-106.
3. Omitted zero-value or shipping lines: If your ERP prints a shipping charge on the PDF but omits it from cac:InvoiceLine while adding it to BT-106, BR-CO-10 fails immediately.
ERP-Specific Fix Tips (Odoo, Exact Online, SAP, Xero)
In Odoo, ensure rounding method is set to Round per Line (not Global) for Peppol journals. In SAP / IDoc mappings, sum the rounded E1EDP26 net values directly into LineExtensionAmount rather than mapping the unrounded header net subtotal. In custom billing engines, run CheckPeppol's local validator on your test XML — it highlights the exact cent delta immediately.
Frequently Asked Questions
Does BR-CO-10 allow a 0.01 rounding tolerance?
No. The official EN 16931 Schematron rule checks exact equality between BT-106 and the rounded sum of all BT-131 line net amounts. Even a 0.01 difference causes a fatal rejection.
Should document-level shipping charges be included in BT-106?
No. Put document-level charges in BT-108 (ChargeTotalAmount) and cac:AllowanceCharge (ChargeIndicator=true), OR represent shipping as its own cac:InvoiceLine so it sums cleanly into BT-106.
How do I diagnose which line caused BR-CO-10?
Paste your XML into CheckPeppol. The engine checks both PEPPOL-EN16931-R120 (per-line math) and BR-CO-10 (header sum) and reports the exact line number and cent delta.