EN16931 / XRechnung / Peppol BIS 3 Validator

BR-DEX-02: Der Wert von "Invoice line net amount" (BT-131) einer "INVOICE LINE" (BG-25)…

warning UBL

What this error means and how to fix it

An XRechnung extension rule (KoSIT): it applies to invoices using the XRechnung extension profile, for example third-party payments (BG-DEX-09) or sub-invoice lines. This is a warning: on its own it does not reject the invoice.

Check your invoice against BR-DEX-02 — free

Runs the KoSIT validator 1.6.3, unmodified · result in seconds · the file is not stored · No file at hand? Try a sample invoice

Warnings are not repaired automatically. The free check shows every finding in the file with its location; if other errors in the same file are in the automatic set (totals, VAT breakdown, rounding, element order), the result page offers the corrected file for 9 €.

Rule text

[BR-DEX-02] Der Wert von "Invoice line net amount" (BT-131) einer "INVOICE LINE" (BG-25) oder einer "SUB INVOICE LINE" (BG-DEX-01) soll der Summe der "Invoice line net amount" (BT-131) der direkt darunterliegenden "SUB INVOICE LINE" (BG-DEX-01) entsprechen.

XRechnung rule texts are published in German by KoSIT; the text above is the original.

Where the rule is checked (XPath context and test)
SyntaxSeverityContext (XPath)Test (XPath)
XRechnung-UBLwarning(every $invoiceline in /ubl:Invoice/cac:InvoiceLine[ exists (./cac:SubInvoiceLine) ] satisfies $invoiceline/xs:decimal(cbc:LineExtensionAmount) = sum($invoiceline/cac:SubInvoiceLine/xs:decimal(cbc:LineExtensionAmount))) and (count( //cac:SubInvoiceLine [count(cac:SubInvoiceLine) > 0 and xs:decimal(cbc:LineExtensionAmount) = sum(cac:SubInvoiceLine/xs:decimal(cbc:LineExtensionAmount))]) = count(//cac:SubInvoiceLine [count(cac:SubInvoiceLine) > 0]))

Business terms referenced

BT-131, BG-25

Related rules

BR-CO-10, BR-CO-13, BR-24, BR-DEC-23, BR-AE-08, BR-E-08, BR-G-08, BR-IC-08, BR-IG-08, BR-IP-08, BR-O-08, BR-S-08

Source: XRechnung Schematron, UBL (itplr-kosit/xrechnung-schematron, Apache-2.0).

Check your invoice against this rule