VRBL-INV-IS-1p0-7

Basic Info

Rule When the Seller Country Code is 'IS' and the Payment Means Type Code is '42', a 12 digit Payment Account ID should be provided.
Context /ubl:Invoice/cac:PaymentMeans
Pattern vrbl-invoice-is-peppolbis-3p0
Severity fatal

Implementation

not(
	../cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'IS'
	and
	cbc:PaymentMeansCode = '42'
)
or
(
	string-length(cac:PayeeFinancialAccount/cbc:ID) = 12
	and
	translate(cac:PayeeFinancialAccount/cbc:ID, '0123456789', '') = ''
)