VRBL-INV-PT-2p1-217
Basic Info
|
Rule
|
The value of the Invoice Line Commodity Classification Code List ID must be contained in UNCL7143 item type identification [VRBL-CL-ItemNumberTypeCode]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL7143/ |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode
|
|
Pattern
|
vrbl-invoice-pt-2p1 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@listID
|
| codeList |
= |
$VRBL-CL-ItemNumberTypeCode
|
Implementation
not(boolean(@listID))
or
(
(
not(
contains(
normalize-space(@listID),
substring($VRBL-CL-ItemNumberTypeCode, 1, 1)
)
)
and
contains(
$VRBL-CL-ItemNumberTypeCode,
concat(
substring($VRBL-CL-ItemNumberTypeCode, 1, 1),
normalize-space(@listID),
substring($VRBL-CL-ItemNumberTypeCode, 1, 1)
)
)
)
)