VRBL-INV-FR-CIUS-1p0-10

Basic Info

Rule The value of the Delivery Location Scheme ID must not be contained in ISO 6523 ICD (disallowed values in France) [VRBL-CL-FR-ISO-6523-ICD-Forbidden]. Not allowed values: 0245.
Context /ubl:Invoice/cac:Delivery/cac:DeliveryLocation/cbc:ID
Pattern vrbl-invoice-fr-cius-1p0
Severity warning

Used Template: CodeList

Parameter Value
probe = @schemeID
codeList = !$VRBL-CL-FR-ISO-6523-ICD-Forbidden
showValues = true

Implementation

not(boolean(@schemeID))
or
(
	not(
		not(
			contains(
				normalize-space(@schemeID),
				substring($VRBL-CL-FR-ISO-6523-ICD-Forbidden, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-FR-ISO-6523-ICD-Forbidden,
			concat(
				substring($VRBL-CL-FR-ISO-6523-ICD-Forbidden, 1, 1),
				normalize-space(@schemeID),
				substring($VRBL-CL-FR-ISO-6523-ICD-Forbidden, 1, 1)
			)
		)
	)
)