VRBL-INV-IT-1p2-120
Basic Info
| Rule | When used for EORI, the Tax Representative Party Identification ID is restricted to 13 to 17 characters. |
| Context |
/ubl:Invoice/cac:TaxRepresentativeParty/cac:PartyIdentification/cbc:ID
|
| Pattern | vrbl-invoice-it-1p2 |
| Severity | fatal |
Implementation
not(@schemeID = concat($VRBL-IT-Prefix, 'EORI'))
or
(
string-length(normalize-space(.)) >= 13
and
string-length(normalize-space(.)) <= 17
)