VRBL-INV-FR-1p0-1
Basic Info
| Rule | The value of the Payment Means Payment Means Code must be contained in Payment Means Code [VRBL-CL-FR-PaymentMeansCode]. Allowed values: 1, 10, 20, 25, 26, 30, 31, 42, 48, 49, 54, 55, 58, 59, 92, 97. |
| Context |
/ubl:Invoice/cac:PaymentMeans/cbc:PaymentMeansCode
|
| Pattern | vrbl-invoice-fr-1p0 |
| Severity | fatal |
Used Template: CodeList
| Parameter | Value | |
|---|---|---|
| probe | = |
.
|
| codeList | = |
$VRBL-CL-FR-PaymentMeansCode
|
| showValues | = |
true
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-FR-PaymentMeansCode, 1, 1)
)
)
and
contains(
$VRBL-CL-FR-PaymentMeansCode,
concat(
substring($VRBL-CL-FR-PaymentMeansCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-FR-PaymentMeansCode, 1, 1)
)
)
)
)