BR-DEX-15: Sub invoice lines are not supported by the XRechnung extension in CII
Official message
[BR-DEX-15] This CII file might use the concept of Sub Invoice Lines. However XRechnung does not support this.
- Severity
- Warning Note: this does not make the invoice invalid, but it should be checked.
- Applies to
- XRechnung (CII)
What does this mean?
The CII invoice is marked as XRechnung extension and contains references to parent lines (ram:ParentLineID). This indicates sub invoice lines, which XRechnung does not support in the CII syntax. The message is a warning.
Typical causes
The invoice was generated with hierarchical lines, e.g. from a ZUGFeRD EXTENDED profile, and then marked as XRechnung extension.
Lines refer to another line via ram:AssociatedDocumentLineDocument/ram:ParentLineID.
How to fix the error
Represent the lines without hierarchy as plain invoice lines and remove ram:ParentLineID.
If sub invoice lines are needed, use the XRechnung extension in the UBL syntax; it provides sub invoice lines (BG-DEX-01).
Generate and validate the invoice again.
Example
Wrong
<ram:IncludedSupplyChainTradeLineItem>
<ram:AssociatedDocumentLineDocument>
<ram:LineID>1.1</ram:LineID>
<ram:ParentLineID>1</ram:ParentLineID>
</ram:AssociatedDocumentLineDocument>
...
</ram:IncludedSupplyChainTradeLineItem>
Correct
<ram:IncludedSupplyChainTradeLineItem>
<ram:AssociatedDocumentLineDocument>
<ram:LineID>2</ram:LineID>
</ram:AssociatedDocumentLineDocument>
...
</ram:IncludedSupplyChainTradeLineItem>
For developers: test expression per syntax
XRechnung (CII) (CII)
Context: /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:AssociatedDocumentLineDocument[$isExtension]
not(exists(//ram:ParentLineID))
Related validation rules
- BR-DEX-01: Invalid MIME code of an attachment (BT-125) in the XRechnung extension
- BR-DEX-02: Line net amount does not match the sum of its sub invoice lines
- BR-DEX-03: Sub invoice line without exactly one VAT information (BG-DEX-06)
- BR-DEX-04: Scheme of a party identifier is not an ISO 6523 ICD code (extension)
- BR-DEX-05: Scheme of a registration identifier is not an ISO 6523 ICD code (extension)
- BR-DEX-06: Scheme of the item standard identifier (BT-157) is not an ISO 6523 ICD code (extension)
Last updated:
Explanation of the validation rule, not legal or tax advice.