Skip to main content

BR-DEX-02 Line net amount should equal the sum of its sub invoice lines

The Invoice line net amount (BT-131) of an INVOICE LINE (BG-25) or a SUB INVOICE LINE (BG-DEX-01) should equal the sum of the Invoice line net amounts (BT-131) of the SUB INVOICE LINEs (BG-DEX-01) directly beneath it.

Problem Description

WARNING

XRechnung extension rule (KoSIT, BR-DEX) · XRechnung 3.0

Interactive pipeline

Click a stage to see what it checks, or type a rule ID to light up the stage that reports it.

Try:

BR-DEX-02 XRechnung extension rule

Reported in stage 3: National rules (CIUS).

Level warning: on its own, the invoice is still accepted.

Stage 3 · What it checks

  • The specification identifier in BT-24 selects the rule set, for example XRechnung 3.0 or Peppol BIS Billing 3.0.
  • XRechnung adds the German BR-DE rules: buyer reference (BT-10), seller contact, payment instructions.
  • Peppol adds PEPPOL-EN16931 and country rules. XRechnung applies some PEPPOL-EN16931 rules too.

Example codes

Typical fix

Fill the fields the rule set requires in your master data, such as the Leitweg-ID in BT-10 or the seller contact.

A validator checks an e-invoice in stages. First the file must be well-formed XML that matches the UBL or CII schema (XSD). Then the EN 16931 business rules run: BR core rules, BR-CO calculations, BR-CL code lists, BR-DEC decimals and VAT-category rules such as BR-S. Next come the national or network rules that BT-24 selects: BR-DE for XRechnung, PEPPOL-EN16931 for Peppol BIS Billing. The report lists every failed rule: one error means reject, warnings alone still mean accept. BR-DEX-02: XRechnung extension rule, reported in the stage “National rules (CIUS)”. Rule sets: KoSIT validator 1.6.3 with the XRechnung configuration of 31 Aug 2026 (EN 16931 artefacts 1.3.16), Peppol BIS Billing 3.0.21.

Solution

Recompute the parent BT-131 so it equals the total of the child SubInvoiceLine BT-131 values, or correct the sub-line amounts. If sub invoice lines are not required, the standard XRechnung CIUS profile avoids this Extension rule.

Quick actions

Context and Significance

This XRechnung Extension rule only applies in the Extension scenario, which allows nested sub invoice lines mapped to UBL cac:SubInvoiceLine; the Schematron flags it as a warning-level arithmetic check.

Valid Examples

  • Parent BT-131 = 100.00; two sub lines with BT-131 = 60.00 and 40.00

Invalid Examples

  • Parent BT-131 = 100.00; sub lines sum to 90.00

Code Examples

Valid XML
<cac:InvoiceLine>
  <cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
  <cac:SubInvoiceLine>
    <cbc:LineExtensionAmount currencyID="EUR">60.00</cbc:LineExtensionAmount>
  </cac:SubInvoiceLine>
  <cac:SubInvoiceLine>
    <cbc:LineExtensionAmount currencyID="EUR">40.00</cbc:LineExtensionAmount>
  </cac:SubInvoiceLine>
</cac:InvoiceLine>
Invalid XML
<cac:InvoiceLine>
  <cbc:LineExtensionAmount currencyID="EUR">100.00</cbc:LineExtensionAmount>
  <cac:SubInvoiceLine>
    <cbc:LineExtensionAmount currencyID="EUR">60.00</cbc:LineExtensionAmount>
  </cac:SubInvoiceLine>
  <cac:SubInvoiceLine>
    <cbc:LineExtensionAmount currencyID="EUR">30.00</cbc:LineExtensionAmount>
  </cac:SubInvoiceLine>
</cac:InvoiceLine>

Affected Fields

Validation Tools