VRBL-INV-MY-1p0-23
Basic Info
| Rule | When the Additional Document Reference Group is used as Customs Form N. 2 (K2), 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, 'K2'))
)
or
(
string-length(normalize-space(.)) <= 19
)