# BR-FREXT-05

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

> Num Fact : … , Code : … - [BR-FREXT-05]-The code for the subtype of the invoice line item (EXT-FR-FE-163) must be used from the Line Status Reason code list.

- Level: error
- Rule sets: EXTENDED-CTC-FR rules (UBL) 1.4.0.04
- Context: `(cac:InvoiceLine|cac:CreditNoteLine)`
- Test: `not($isSublineCode) or (((not(contains(normalize-space(cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentStatusCode), ' ')) and contains(' DETAIL GROUP INFORMATION ', concat(' ', normalize-space(cac:BillingReference/cac:InvoiceDocumentReference/cbc:DocumentStatusCode), ' ')))))`

> Code : ' … ' - [BR-FREXT-05]-The code for the subtype of the invoice line item (EXT-FR-FE-163) must be used from the Line Status Reason code list.

- Level: error
- Rule sets: EXTENDED-CTC-FR rules (CII) 1.4.0.04
- Context: `//ram:IncludedSupplyChainTradeLineItem`
- Test: `not(exists($subLineCode)) or (exists($subLineCode) and not(contains($subLineCode, ' ')) and contains(' DETAIL GROUP INFORMATION ', concat(' ', $subLineCode, ' ')))`

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