VRBL-INV-DK-OIOUBL-2p0-82

Basic Info

Rule The value of the Payment Means Payment Means Code must be contained in Payment Means Code (subset of UNCL4461) [VRBL-CL-DK-OIOUBL2p0-PaymentMeansCode-UNCL4461]. Allowed values: 1, 10, 20, 31, 42, 48, 49, 50, 58, 59, 93, 97. For more information visit: https://oioubl21.oioubl.dk/codelists/en/urn_oioubl_codelist_paymentmeanscode-1.1.html
Context /ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode
Pattern vrbl-invoice-dk-oioubl-2p0
Severity fatal

Used Template: CodeList

Parameter Value
probe = .
codeList = $VRBL-CL-DK-OIOUBL2p0-PaymentMeansCode-UNCL4461
showValues = true

Implementation

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