VRBL-INV-PEPPOL-RS-90

Basic Info

Rule If the Payee Legal Registration ID is marked as a GLN, it must be 13 digits.
Context /ubl:Invoice/cac:PayeeParty/cac:PartyLegalEntity/cbc:CompanyID
Pattern vrbl-invoice-peppol-bis3p0-reduced-syntax
Severity fatal

Used Template: GLN-length-check

Implementation

not(@schemeID = '0088')
or
(
	string-length(normalize-space(.)) = 13
	and
	string(number(normalize-space(.))) != 'NaN'
)