Top Up Credits โ†’
InvoiceSpec / Rules Registry / peppol-bis-3 / BR-CO-10
fatal ASSERTION ยท BR-CO-10 Peppol BIS Billing 3.0 (UBL-2.1) Jurisdiction: EU

BR-CO-10: Sum of Invoice line net amount (BT-106) must equal sum of all line net amounts (BT-131)

Official Peppol BIS Billing 3.0 Spec โ†—
01. Technical Specification & XPath Evaluation Context

Rule BR-CO-10 enforces mathematical integrity between line items and the document header monetary total. Specifically, LegalMonetaryTotal/LineExtensionAmount (BT-106) must equal the exact sum of all InvoiceLine/LineExtensionAmount (BT-131) values rounded to 2 decimal places.

Evaluated XPath Location:
/ubl:Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount
Deterministic Remediation Steps

Compute BT-106 (cac:LegalMonetaryTotal/cbc:LineExtensionAmount) by summing the already-rounded 2-decimal cbc:LineExtensionAmount (BT-131) of each line item rather than summing unrounded unit price * quantity floats.

02. Side-by-Side UBL-2.1 Payload Diff (Rejected vs. Compliant)
--- a/invoice-rejected.xml (BR-CO-10) FAIL
1 <cac:InvoiceLine>
2 <cbc:ID>1</cbc:ID>
3 <cbc:LineExtensionAmount currencyID="EUR">149.95</cbc:LineExtensionAmount>
4 </cac:InvoiceLine>
5 <cac:InvoiceLine>
6 <cbc:ID>2</cbc:ID>
7 <cbc:LineExtensionAmount currencyID="EUR">50.00</cbc:LineExtensionAmount>
8 </cac:InvoiceLine>
9 <cac:LegalMonetaryTotal>
10 - <!-- ERROR [BR-CO-10]: 149.95 + 50.00 = 199.95, but header reports 200.00 -->
11 <cbc:LineExtensionAmount currencyID="EUR">200.00</cbc:LineExtensionAmount>
12 <cbc:TaxExclusiveAmount currencyID="EUR">200.00</cbc:TaxExclusiveAmount>
13 <cbc:TaxInclusiveAmount currencyID="EUR">238.00</cbc:TaxInclusiveAmount>
14 <cbc:PayableAmount currencyID="EUR">238.00</cbc:PayableAmount>
15 </cac:LegalMonetaryTotal>
+++ b/invoice-compliant.xml (EN 16931 VALID)
PASS
1 <cac:InvoiceLine>
2 <cbc:ID>1</cbc:ID>
3 <cbc:LineExtensionAmount currencyID="EUR">149.95</cbc:LineExtensionAmount>
4 </cac:InvoiceLine>
5 <cac:InvoiceLine>
6 <cbc:ID>2</cbc:ID>
7 <cbc:LineExtensionAmount currencyID="EUR">50.00</cbc:LineExtensionAmount>
8 </cac:InvoiceLine>
9 <cac:LegalMonetaryTotal>
10 + <cbc:LineExtensionAmount currencyID="EUR">199.95</cbc:LineExtensionAmount>
11 + <cbc:TaxExclusiveAmount currencyID="EUR">199.95</cbc:TaxExclusiveAmount>
12 + <cbc:TaxInclusiveAmount currencyID="EUR">237.94</cbc:TaxInclusiveAmount>
13 + <cbc:PayableAmount currencyID="EUR">237.94</cbc:PayableAmount>
14 </cac:LegalMonetaryTotal>
03. Interactive Peppol BIS Billing 3.0 Validation & Auto-Fix Workbench
1 CREDITS
invoice.xmlUBL-2.1
DETECTED SOURCECustom ERP / Billing Engine
BT-131 LINE SUM199.95 EUR
BT-106 HEADER200.00 EUR
SCHEMATRON: 2 FATAL, 1 WARNยท 1ms
Peppol BIS Billing 3.0
BR-01An Invoice shall have a valid EN 16931 Specification identifier (BT-24)
Spec & Diff
xpath: /ubl:Invoice/cbc:CustomizationID

Missing <cbc:CustomizationID> or value does not declare EN 16931 CIUS compliance.

fix: Insert <cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>.

BR-DE-15Buyer reference / Leitweg-ID (BT-10) is missing
Spec & Diff
xpath: /ubl:Invoice/cbc:BuyerReference

No <cbc:BuyerReference> (BT-10) found. Mandatory in XRechnung 3.0 (BR-DE-15) and required in Peppol BIS 3.0 (PEPPOL-EN16931-R003) when OrderReference is absent.

fix: Insert <cbc:BuyerReference>991-12849-74</cbc:BuyerReference> in the document header.

BR-CO-10Sum of Invoice line net amount (BT-106 = 200.00) != sum of lines (BT-131 = 199.95)
Spec & Diff
xpath: /ubl:Invoice/cac:LegalMonetaryTotal/cbc:LineExtensionAmount

Mathematical discrepancy of 0.05 EUR between InvoiceLine sum (199.95) and LegalMonetaryTotal/LineExtensionAmount (200.00).

fix: Set cbc:LineExtensionAmount and cbc:TaxExclusiveAmount to 199.95.

Automate Custom ERP / Billing Engine โ†’ Peppol BIS Billing 3.0 AP Delivery

Deploy certified Peppol Access Point & ZUGFeRD ERP connector

04. Adjacent Peppol BIS Billing 3.0 Assertions Browse All Rules โ†’