This CII file might use the concept of Sub Invoice Lines. However XRechnung does not support this.
The CII document contains a ParentLineID. The rule excludes this element because the concept of sub invoice lines is not supported here.
The rule prevents the use of the sub invoice line concept in this document format or context.
The document contains ParentLineID, which identifies a sub invoice line. Remove this detail so the document does not use this unsupported concept.
- Find the
ParentLineIDelement in the CII document. - Remove this element.
- Generate the invoice again and validate it once more.
<ram:AssociatedDocumentLineDocument> <ram:ParentLineID>1</ram:ParentLineID> </ram:AssociatedDocumentLineDocument>
<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.
The rule applies to AssociatedDocumentLineDocument of an IncludedSupplyChainTradeLineItem in the extension context.
rule/@context)assert/@test)