VRBL-INV-CORE-83
Basic Info
|
Rule
|
Apart from VRBL prefixed codes, the value of the Additional Document Reference Scheme ID must be contained in UNTDID 1153 object identifier [VRBL-CL-ObjectSchemeID]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL1153/ |
|
Context
|
/ubl:Invoice/cac:AdditionalDocumentReference/cbc:ID
|
|
Pattern
|
vrbl-invoice-core |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@schemeID
|
| codeList |
= |
$VRBL-CL-ObjectSchemeID
|
Implementation
(
starts-with(@schemeID, $VRBL-Prefix)
)
or
(
not(boolean(@schemeID))
or
(
(
not(
contains(
normalize-space(@schemeID),
substring($VRBL-CL-ObjectSchemeID, 1, 1)
)
)
and
contains(
$VRBL-CL-ObjectSchemeID,
concat(
substring($VRBL-CL-ObjectSchemeID, 1, 1),
normalize-space(@schemeID),
substring($VRBL-CL-ObjectSchemeID, 1, 1)
)
)
)
)
)