BR-FREXT-05
The rule sets below word this rule differently; each wording is shown with its rule set.
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
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.
(cac:InvoiceLine|cac:CreditNoteLine)
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), ' ')))))
Checked with France EXTENDED-CTC-FR (UBL)
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.
//ram:IncludedSupplyChainTradeLineItem
not(exists($subLineCode)) or (exists($subLineCode) and not(contains($subLineCode, ' ')) and contains(' DETAIL GROUP INFORMATION ', concat(' ', $subLineCode, ' ')))
Checked with France EXTENDED-CTC-FR (CII)