VRBL-INV-CH-YELLOWBILL-3p0-27
Basic Info
|
Rule
|
When multiple Invoice Line Description are provided, the value of the Invoice Line Description Language ID must be contained in Language ID [VRBL-CL-CH-languageID]. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:Item/cbc:Description
|
|
Pattern
|
vrbl-ch-yellowbill-3p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@languageID
|
| codeList |
= |
$VRBL-CL-CH-languageID
|
Implementation
(
count(../cbc:Description)=1
)
or
(
not(boolean(@languageID))
or
(
(
not(
contains(
normalize-space(@languageID),
substring($VRBL-CL-CH-languageID, 1, 1)
)
)
and
contains(
$VRBL-CL-CH-languageID,
concat(
substring($VRBL-CL-CH-languageID, 1, 1),
normalize-space(@languageID),
substring($VRBL-CL-CH-languageID, 1, 1)
)
)
)
)
)