VRBL-INV-FR-CIUS-1p0-292

Basic Info

Rule The value of the Delivery Terms ID must be contained in INCOTERMS (allowed values in France) [VRBL-CL-FR-INCOTERMS].
Context /ubl:Invoice/cac:DeliveryTerms/cbc:ID
Pattern vrbl-invoice-fr-cius-1p0-min
Severity fatal

Used Template: CodeList

Parameter Value
probe = .
codeList = $VRBL-CL-FR-INCOTERMS

Implementation

not(boolean(.))
or
(
	(
		not(
			contains(
				normalize-space(.),
				substring($VRBL-CL-FR-INCOTERMS, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-FR-INCOTERMS,
			concat(
				substring($VRBL-CL-FR-INCOTERMS, 1, 1),
				normalize-space(.),
				substring($VRBL-CL-FR-INCOTERMS, 1, 1)
			)
		)
	)
)