VRBL-INV-SA-1p2-99

Basic Info

Rule The value of the Payment Means Payment Means Code must be contained in Payment Means Code (subset of UNTDID 4461) [VRBL-CL-SA-PaymentMeansCode].
Context /ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode
Pattern vrbl-invoice-sa-1p2
Severity fatal

Used Template: CodeList

Parameter Value
probe = .
codeList = $VRBL-CL-SA-PaymentMeansCode

Implementation

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