BR-FREXT-05

The rule sets below word this rule differently; each wording is shown with its rule set.

error: the document is invalid

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.

Message

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.

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), ' ')))))

Checked with France EXTENDED-CTC-FR (UBL)

Message

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.

Context
//ram:IncludedSupplyChainTradeLineItem
Test
not(exists($subLineCode)) or (exists($subLineCode) and not(contains($subLineCode, ' ')) and contains(' DETAIL GROUP INFORMATION ', concat(' ', $subLineCode, ' ')))

Checked with France EXTENDED-CTC-FR (CII)