VRBL-INV-GR-1p0-16

Basic Info

Rule When the Seller Group is Greek, and the Additional Document Reference Group is used as MARK Number then the Additional Document Reference ID must be a positive integer.
Context /ubl:Invoice/cac:AdditionalDocumentReference
Pattern vrbl-invoice-gr-1p0
Severity fatal

Implementation

not(
	$GRSupplierCountry= 'GR'
	and
	cbc:DocumentDescription = concat($VRBL-GR-Prefix, 'MARK')
)
or
(
	string(number(normalize-space(cbc:ID))) != 'NaN'
	and
	string-length(translate(cbc:ID, '0123456789', '')) = 0
)