Rules
Basic Info
|
Rule
|
When the Additional Document Reference Group is used as Customs Import Form, the allowed maximum number of characters for the Additional Document Reference ID is 19. |
|
Context
|
/ubl:Invoice/cac:AdditionalDocumentReference/cbc:ID
|
|
Pattern
|
vrbl-invoice-my-1p0 |
|
Severity
|
fatal |
Used Template: MaximumStringLength
| Parameter |
|
Value |
| probe |
= |
.
|
| length |
= |
19
|
Implementation
(
not(../cbc:DocumentType = concat($VRBL-MY-Prefix, 'CustomsImportForm'))
)
or
(
string-length(normalize-space(.)) <= 19
)