Do not use a parent invoice line

Warning BR-DEX-15 XRechnung

This CII file might use the concept of Sub Invoice Lines. However XRechnung does not support this.

Recommendation: The invoice remains valid but should be corrected so that it can be processed automatically.
What is wrong

The CII document contains a ParentLineID. The rule excludes this element because the concept of sub invoice lines is not supported here.

What the rule means

The rule prevents the use of the sub invoice line concept in this document format or context.

Please remove the parent invoice line identifier

The document contains ParentLineID, which identifies a sub invoice line. Remove this detail so the document does not use this unsupported concept.

What to do
  1. Find the ParentLineID element in the CII document.
  2. Remove this element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:AssociatedDocumentLineDocument>
  <ram:ParentLineID>1</ram:ParentLineID>
</ram:AssociatedDocumentLineDocument>
✓ Correct
<ram:AssociatedDocumentLineDocument/>
Technical details

The test requires that no ram:ParentLineID exists anywhere in the document. It checks exists(//ram:ParentLineID) irrespective of the element’s location.

Where the rule applies

The rule applies to AssociatedDocumentLineDocument of an IncludedSupplyChainTradeLineItem in the extension context.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:AssociatedDocumentLineDocument[$isExtension]
Test expression (assert/@test)
not(exists(//ram:ParentLineID))