VRBL-INV-DK-1p0-19

Basic Info

Rule When the Seller Group is Danish, the value of the Payment Means Payment Means Code must be contained in Payment Means Code [VRBL-CL-Subset-of-PaymentMeansCode]. Allowed values: 1, 10, 31, 42, 48, 49, 50, 58, 59, 93, 97. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4461/
Context /ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode
Pattern vrbl-invoice-dk-1p0
Severity fatal

Used Template: CodeList

Parameter Value
probe = .
codeList = $VRBL-CL-Subset-of-PaymentMeansCode
showValues = true

Implementation

(
	not($DKSupplierCountry = 'DK')
)
or
(
	not(boolean(.))
	or
	(
		(
			not(
				contains(
					normalize-space(.),
					substring($VRBL-CL-Subset-of-PaymentMeansCode, 1, 1)
				)
			)
			and
			contains(
				$VRBL-CL-Subset-of-PaymentMeansCode,
				concat(
					substring($VRBL-CL-Subset-of-PaymentMeansCode, 1, 1),
					normalize-space(.),
					substring($VRBL-CL-Subset-of-PaymentMeansCode, 1, 1)
				)
			)
		)
	)
)