VRBL-INV-DK-OIOUBL-2p0-103
Basic Info
|
Rule
|
The value of the Seller Party Identification Scheme ID must be contained in Party Identification ID (subset of ISO 6523 ICD) [VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-ISO6523] or be contained in Party Identification ID (custom codes) [VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-OIOUBL] (prefixed by 'VRBL:DK:'). For more information visit: https://oioubl21.oioubl.dk/codelists/en/urn_oioubl_scheme_partyidentificationid-1.1.html |
|
Context
|
/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID
|
|
Pattern
|
vrbl-invoice-dk-oioubl-2p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@schemeID
|
| codeList |
= |
$VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-ISO6523 or $VRBL-DK-Prefix:$VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-OIOUBL
|
Implementation
not(boolean(@schemeID))
or
(
(
not(
contains(
normalize-space(@schemeID),
substring($VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-ISO6523, 1, 1)
)
)
and
contains(
$VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-ISO6523,
concat(
substring($VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-ISO6523, 1, 1),
normalize-space(@schemeID),
substring($VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-ISO6523, 1, 1)
)
)
)
)
or
(
(
substring(normalize-space(@schemeID), 1, string-length($VRBL-DK-Prefix)) = $VRBL-DK-Prefix
and
not(
contains(
substring-after(normalize-space(@schemeID), $VRBL-DK-Prefix),
substring($VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-OIOUBL, 1, 1)
)
)
and
contains(
$VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-OIOUBL,
concat(
substring($VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-OIOUBL, 1, 1),
substring-after(normalize-space(@schemeID), $VRBL-DK-Prefix),
substring($VRBL-CL-DK-OIOUBL2p0-PartyIdentificationSchemeID-OIOUBL, 1, 1)
)
)
)
)