VRBL-INV-FR-CIUS-1p0-127
Basic Info
|
Rule
|
When the Note Code is BAR, the value of the Note must be contained in Note BAR codes [VRBL-CL-FR-Note-BAR]. |
|
Context
|
/ubl:Invoice/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceExtension/vrbl:Note
|
|
Pattern
|
vrbl-invoice-fr-cius-1p0 |
|
Severity
|
warning |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-FR-Note-BAR
|
Implementation
(
not(@code = 'BAR')
)
or
(
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-FR-Note-BAR, 1, 1)
)
)
and
contains(
$VRBL-CL-FR-Note-BAR,
concat(
substring($VRBL-CL-FR-Note-BAR, 1, 1),
normalize-space(.),
substring($VRBL-CL-FR-Note-BAR, 1, 1)
)
)
)
)
)