VRBL-INV-FR-CIUS-1p0-B2G-15

Basic Info

Rule For B2G, if the Seller Agent Party Identification ID is marked as a SIRET-CODE, it must be 14 digits.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:AgentParty/cac:PartyIdentification/cbc:ID
Pattern vrbl-invoice-fr-cpro-b2g
Severity warning

Used Template: VRBL-FR-schemeID-0009

Implementation

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