VRBL-INV-PL-B2B-3-67
Basic Info
|
Rule
|
The value of the Buyer Party Identification Scheme ID must be contained in ISO 6523 ICD [VRBL-CL-IdentificationSchemeID] or be contained in EORI [VRBL-CL-PL-KSeF-EORI] (prefixed by 'VRBL:') or be contained in PL Party Identification Extension [VRBL-CL-PL-KSeF-PartyIdentification-Extension] (prefixed by 'VRBL:PL:'). For more information visit: https://docs.peppol.eu/poacc/billing/3.0/2025-Q4/codelist/ICD/ |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
|
|
Pattern
|
vrbl-invoice-pl-b2b-3p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@schemeID
|
| codeList |
= |
$VRBL-CL-IdentificationSchemeID or $VRBL-Prefix:$VRBL-CL-PL-KSeF-EORI or $VRBL-PL-Prefix:$VRBL-CL-PL-KSeF-PartyIdentification-Extension
|
Implementation
not(boolean(@schemeID))
or
(
(
not(
contains(
normalize-space(@schemeID),
substring($VRBL-CL-IdentificationSchemeID, 1, 1)
)
)
and
contains(
$VRBL-CL-IdentificationSchemeID,
concat(
substring($VRBL-CL-IdentificationSchemeID, 1, 1),
normalize-space(@schemeID),
substring($VRBL-CL-IdentificationSchemeID, 1, 1)
)
)
)
)
or
(
(
substring(normalize-space(@schemeID), 1, string-length($VRBL-Prefix)) = $VRBL-Prefix
and
not(
contains(
substring-after(normalize-space(@schemeID), $VRBL-Prefix),
substring($VRBL-CL-PL-KSeF-EORI, 1, 1)
)
)
and
contains(
$VRBL-CL-PL-KSeF-EORI,
concat(
substring($VRBL-CL-PL-KSeF-EORI, 1, 1),
substring-after(normalize-space(@schemeID), $VRBL-Prefix),
substring($VRBL-CL-PL-KSeF-EORI, 1, 1)
)
)
)
)
or
(
(
substring(normalize-space(@schemeID), 1, string-length($VRBL-PL-Prefix)) = $VRBL-PL-Prefix
and
not(
contains(
substring-after(normalize-space(@schemeID), $VRBL-PL-Prefix),
substring($VRBL-CL-PL-KSeF-PartyIdentification-Extension, 1, 1)
)
)
and
contains(
$VRBL-CL-PL-KSeF-PartyIdentification-Extension,
concat(
substring($VRBL-CL-PL-KSeF-PartyIdentification-Extension, 1, 1),
substring-after(normalize-space(@schemeID), $VRBL-PL-Prefix),
substring($VRBL-CL-PL-KSeF-PartyIdentification-Extension, 1, 1)
)
)
)
)