VRBL-INV-FR-1p0-3

Basic Info

Rule If the Seller ID is marked as a SIRET-CODE, it must be 14 digits.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID
Pattern vrbl-invoice-fr-1p0
Severity fatal

Used Template: VRBL-FR-schemeID-0009

Implementation

not(@schemeID = '0009')
or
(
	string-length(normalize-space(.)) = 14
	and
	string-length(translate(normalize-space(.), $Numerics, '')) = 0
)