# BR-FREXT-06

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

> Num Fact : … Num line : … , Parent line : … , Subline Code : … - [BR-FREXT-06]-If the "Identifier of the parent line" (EXT-FR-FE-162) is used, the "Subtype of the invoice line item" (EXT-FR-FE-163) must be specified

- Level: error
- Rule sets: EXTENDED-CTC-FR rules (UBL) 1.4.0.04
- Context: `(cac:InvoiceLine|cac:CreditNoteLine)`
- Test: `($isParentID and $isSublineCode) or not($isParentID)`

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

- Level: error
- Rule sets: EXTENDED-CTC-FR rules (CII) 1.4.0.04
- Context: `//ram:IncludedSupplyChainTradeLineItem`
- Test: `$parentID ='' or ($parentID != '' and $subLineCode != '')`

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