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

Basic Info

Rule The value of the Seller Endpoint ID Scheme ID must not be contained in CEF EAS (disallowed values in France) [VRBL-CL-FR-CEF-EAS-Forbidden]. Not allowed values: 0245.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID
Pattern vrbl-invoice-fr-cius-1p0
Severity warning

Used Template: CodeList

Parameter Value
probe = @schemeID
codeList = !$VRBL-CL-FR-CEF-EAS-Forbidden
showValues = true

Implementation

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