BR-DEX-03
XRechnung 2.3.0 · UBL
Original rule text
[BR-DEX-03] Eine Sub Invoice Line (BG-DEX-01) muss genau eine "SUB INVOICE LINE VAT INFORMATION" (BG-DEX-06) enthalten.
not(exists(//cac:SubInvoiceLine/cac:Item[ count ( cac:ClassifiedTaxCategory) != 1]))What this rule requires
For an XRechnung extension invoice, this rule requires that each cac:SubInvoiceLine (BG-DEX-01) contains exactly one cac:ClassifiedTaxCategory inside its cac:Item, which is the "SUB INVOICE LINE VAT INFORMATION" (BG-DEX-06). The document fails if any cac:SubInvoiceLine/cac:Item has zero or more than one cac:ClassifiedTaxCategory child.
How to fix
In the XML, find every cac:SubInvoiceLine/cac:Item and make sure it contains exactly one cac:ClassifiedTaxCategory. If a SubInvoiceLine has no cac:ClassifiedTaxCategory, add one; if it has several, remove all but the correct one. The rule checks only the count, so ensure exactly one is present.
Guidance on this rule. The original text above is authoritative.