# BR-FXEXT-06

Source: https://xmlvalid.com/rules/BR-FXEXT-06

> For each item (BG-25), if the "ID of the parent line" (BT-X-304) is used, the "Subtype of the invoice item" (BT-X-8) must be specified.

- Level: error
- Rule sets: Factur-X EXTENDED rules 1.09.2
- Context: `//ram:IncludedSupplyChainTradeLineItem`
- Test: `normalize-space(ram:AssociatedDocumentLineDocument/ram:ParentLineID) ='' or (normalize-space(ram:AssociatedDocumentLineDocument/ram:ParentLineID) != '' and ram:AssociatedDocumentLineDocument/ram:LineStatusReasonCode != '')`

Validate a document against these rules: https://xmlvalid.com/validate
