VRBL-INV-PEPPOL-PINT-AUNZ-1p0-9
Basic Info
|
Rule
|
The value of the Period Description Code must be contained in Description [VRBL-CL-AUNZ-DescriptionCode]. Allowed values: 3, 35, 432. |
|
Context
|
/ubl:Invoice/cac:InvoicePeriod/cbc:DescriptionCode
|
|
Pattern
|
vrbl-invoice-peppol-pint-au-nz |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-AUNZ-DescriptionCode
|
| showValues |
= |
true
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-AUNZ-DescriptionCode, 1, 1)
)
)
and
contains(
$VRBL-CL-AUNZ-DescriptionCode,
concat(
substring($VRBL-CL-AUNZ-DescriptionCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-AUNZ-DescriptionCode, 1, 1)
)
)
)
)