VRBL-INV-GR-1p0-17
Basic Info
|
Rule
|
The value of the Additional Document Reference Document Description must be contained in Additional Document Reference Indicator [VRBL-CL-GR-AdditionalDocumentReference-DocumentDescription] (prefixed by 'VRBL:GR:'). |
|
Context
|
/ubl:Invoice/cac:AdditionalDocumentReference/cbc:DocumentDescription
|
|
Pattern
|
vrbl-invoice-gr-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-GR-Prefix:$VRBL-CL-GR-AdditionalDocumentReference-DocumentDescription
|
Implementation
not(boolean(.))
or
(
(
substring(normalize-space(.), 1, string-length($VRBL-GR-Prefix)) = $VRBL-GR-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-GR-Prefix),
substring($VRBL-CL-GR-AdditionalDocumentReference-DocumentDescription, 1, 1)
)
)
and
contains(
$VRBL-CL-GR-AdditionalDocumentReference-DocumentDescription,
concat(
substring($VRBL-CL-GR-AdditionalDocumentReference-DocumentDescription, 1, 1),
substring-after(normalize-space(.), $VRBL-GR-Prefix),
substring($VRBL-CL-GR-AdditionalDocumentReference-DocumentDescription, 1, 1)
)
)
)
)