VRBL-INV-PEPPOL-PINT-218

Basic Info

Rule The value of the Legal Monetary Total Tax Inclusive Amount Currency ID must be contained in ISO 4217 Alpha-3 currency [VRBL-CL-PINT-CurrencyCode]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/
Context /ubl:Invoice/cac:LegalMonetaryTotal/cbc:TaxInclusiveAmount
Pattern vrbl-invoice-peppol-pint
Severity fatal

Used Template: CodeList

Parameter Value
probe = @currencyID
codeList = $VRBL-CL-PINT-CurrencyCode

Implementation

not(boolean(@currencyID))
or
(
	(
		not(
			contains(
				normalize-space(@currencyID),
				substring($VRBL-CL-PINT-CurrencyCode, 1, 1)
			)
		)
		and
		contains(
			$VRBL-CL-PINT-CurrencyCode,
			concat(
				substring($VRBL-CL-PINT-CurrencyCode, 1, 1),
				normalize-space(@currencyID),
				substring($VRBL-CL-PINT-CurrencyCode, 1, 1)
			)
		)
	)
)