warning UBL
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.
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 €.
[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.
| Syntax | Severity | Context (XPath) | Test (XPath) |
|---|---|---|---|
| XRechnung-UBL | warning | | (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])) |
BT-131, BG-25
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).