VRBL-INV-DE-XR-35

Basic Info

Rule The value of the Seller Endpoint ID Scheme ID must be contained in E-mail [VRBL-CL-DE-XR-EMail] (prefixed by 'VRBL:DE:') or be contained in DIGA [VRBL-CL-DIGA-CODE] or be contained in Electronic Address Scheme [VRBL-CL-EndpointSchemeID], CEF EAS [VRBL-CL-EN16931-CEF-EAS], CEF EAS [VRBL-CL-PEPPOL-CEF-EAS] and CEF EAS [VRBL-CL-CEF-EAS-CODE]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/2025-Q4/codelist/eas/
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cbc:EndpointID
Pattern vrbl-invoice-de-xr-3p0
Severity fatal

Used Template: CodeList

Parameter Value
probe = @schemeID
codeList = $VRBL-DE-XR-Prefix:$VRBL-CL-DE-XR-EMail or $VRBL-CL-DIGA-CODE or $VRBL-CL-EndpointSchemeID and $VRBL-CL-EN16931-CEF-EAS and $VRBL-CL-PEPPOL-CEF-EAS and $VRBL-CL-CEF-EAS-CODE

Implementation

not(boolean(@schemeID))
or
(
	(
		substring(normalize-space(@schemeID), 1, string-length($VRBL-DE-XR-Prefix)) = $VRBL-DE-XR-Prefix
		and
		not(
			contains(
				substring-after(normalize-space(@schemeID), $VRBL-DE-XR-Prefix),
				substring($VRBL-CL-DE-XR-EMail, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-DE-XR-EMail,
			concat(
				substring($VRBL-CL-DE-XR-EMail, 1, 1),
				substring-after(normalize-space(@schemeID), $VRBL-DE-XR-Prefix),
				substring($VRBL-CL-DE-XR-EMail, 1, 1)
			)
		)
	)
)
or
(
	(
		not(
			contains(
				normalize-space(@schemeID),
				substring($VRBL-CL-DIGA-CODE, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-DIGA-CODE,
			concat(
				substring($VRBL-CL-DIGA-CODE, 1, 1),
				normalize-space(@schemeID),
				substring($VRBL-CL-DIGA-CODE, 1, 1)
			)
		)
	)
)
or
(
	(
		not(
			contains(
				normalize-space(@schemeID),
				substring($VRBL-CL-EndpointSchemeID, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-EndpointSchemeID,
			concat(
				substring($VRBL-CL-EndpointSchemeID, 1, 1),
				normalize-space(@schemeID),
				substring($VRBL-CL-EndpointSchemeID, 1, 1)
			)
		)
	)
	and
	(
		not(
			contains(
				normalize-space(@schemeID),
				substring($VRBL-CL-EN16931-CEF-EAS, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-EN16931-CEF-EAS,
			concat(
				substring($VRBL-CL-EN16931-CEF-EAS, 1, 1),
				normalize-space(@schemeID),
				substring($VRBL-CL-EN16931-CEF-EAS, 1, 1)
			)
		)
	)
	and
	(
		not(
			contains(
				normalize-space(@schemeID),
				substring($VRBL-CL-PEPPOL-CEF-EAS, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-PEPPOL-CEF-EAS,
			concat(
				substring($VRBL-CL-PEPPOL-CEF-EAS, 1, 1),
				normalize-space(@schemeID),
				substring($VRBL-CL-PEPPOL-CEF-EAS, 1, 1)
			)
		)
	)
	and
	(
		not(
			contains(
				normalize-space(@schemeID),
				substring($VRBL-CL-CEF-EAS-CODE, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-CEF-EAS-CODE,
			concat(
				substring($VRBL-CL-CEF-EAS-CODE, 1, 1),
				normalize-space(@schemeID),
				substring($VRBL-CL-CEF-EAS-CODE, 1, 1)
			)
		)
	)
)