VRBL-INV-RS-1p0-3
Basic Info
|
Rule
|
When the Seller Group is Serbian, the value of the Invoice Period Description Code must be contained in Description Code [VRBL-CL-RS-DescriptionCode]. Allowed values: 0, 3, 35, 432. |
|
Context
|
/ubl:Invoice/cac:InvoicePeriod/cbc:DescriptionCode
|
|
Pattern
|
vrbl-invoice-rs-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-RS-DescriptionCode
|
| showValues |
= |
true
|
Implementation
(
not($RSSupplierCountry = 'RS')
)
or
(
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-RS-DescriptionCode, 1, 1)
)
)
and
contains(
$VRBL-CL-RS-DescriptionCode,
concat(
substring($VRBL-CL-RS-DescriptionCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-RS-DescriptionCode, 1, 1)
)
)
)
)
)