VRBL-INV-IT-1p2-137
Basic Info
| Rule | When used for EORI, the Carrier Party Identification ID is restricted to 13 to 17 characters. |
| Context |
/ubl:Invoice/cac:Delivery/cac:CarrierParty/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
)