VRBL-INV-MY-1p0-130
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] or be contained in MY Item Number Type Code (CLASS, PTC) [VRBL-CL-MY-ItemNumberTypeCode] (prefixed by 'VRBL:MY:'). 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-my-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@listID
|
| codeList |
= |
$VRBL-CL-ItemNumberTypeCode or $VRBL-MY-Prefix:$VRBL-CL-MY-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)
)
)
)
)
or
(
(
substring(normalize-space(@listID), 1, string-length($VRBL-MY-Prefix)) = $VRBL-MY-Prefix
and
not(
contains(
substring-after(normalize-space(@listID), $VRBL-MY-Prefix),
substring($VRBL-CL-MY-ItemNumberTypeCode, 1, 1)
)
)
and
contains(
$VRBL-CL-MY-ItemNumberTypeCode,
concat(
substring($VRBL-CL-MY-ItemNumberTypeCode, 1, 1),
substring-after(normalize-space(@listID), $VRBL-MY-Prefix),
substring($VRBL-CL-MY-ItemNumberTypeCode, 1, 1)
)
)
)
)