VRBL-INV-FR-CIUS-1p0-252

Basic Info

Rule If the Payment Means Payment Mandate Payer Party Identification ID is marked as a SIREN-CODE, it must be 9 digits.
Context /ubl:Invoice/cac:PaymentMeans/cac:PaymentMandate/cac:PayerParty/cac:PartyIdentification/cbc:ID
Pattern vrbl-invoice-fr-cius-1p0
Severity warning

Used Template: VRBL-FR-schemeID-0002

Implementation

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