VRBL-INV-SA-1p2-152
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 Buyer ID Code [VRBL-CL-SA-BuyerPartyIdentificationCode] (prefixed by 'VRBL:SA:'). 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-sa-1p2 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@schemeID
|
| codeList |
= |
$VRBL-CL-IdentificationSchemeID or $VRBL-SA-Prefix:$VRBL-CL-SA-BuyerPartyIdentificationCode
|
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-SA-Prefix)) = $VRBL-SA-Prefix
and
not(
contains(
substring-after(normalize-space(@schemeID), $VRBL-SA-Prefix),
substring($VRBL-CL-SA-BuyerPartyIdentificationCode, 1, 1)
)
)
and
contains(
$VRBL-CL-SA-BuyerPartyIdentificationCode,
concat(
substring($VRBL-CL-SA-BuyerPartyIdentificationCode, 1, 1),
substring-after(normalize-space(@schemeID), $VRBL-SA-Prefix),
substring($VRBL-CL-SA-BuyerPartyIdentificationCode, 1, 1)
)
)
)
)