VRBL-INV-PEPPOL-PINT-141
Basic Info
|
Rule
|
The value of the Buyer Party Identification Scheme ID must be contained in ISO 6523 ICD [VRBL-CL-PINT-IdentificationSchemeID] or be contained in ISO 6523 ICD (Extended) [VRBL-CL-PINT-IdentificationSchemeID-Extended]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/ICD/ |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
|
|
Pattern
|
vrbl-invoice-peppol-pint |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@schemeID
|
| codeList |
= |
$VRBL-CL-PINT-IdentificationSchemeID or $VRBL-CL-PINT-IdentificationSchemeID-Extended
|
Implementation
not(boolean(@schemeID))
or
(
(
not(
contains(
normalize-space(@schemeID),
substring($VRBL-CL-PINT-IdentificationSchemeID, 1, 1)
)
)
and
contains(
$VRBL-CL-PINT-IdentificationSchemeID,
concat(
substring($VRBL-CL-PINT-IdentificationSchemeID, 1, 1),
normalize-space(@schemeID),
substring($VRBL-CL-PINT-IdentificationSchemeID, 1, 1)
)
)
)
)
or
(
(
not(
contains(
normalize-space(@schemeID),
substring($VRBL-CL-PINT-IdentificationSchemeID-Extended, 1, 1)
)
)
and
contains(
$VRBL-CL-PINT-IdentificationSchemeID-Extended,
concat(
substring($VRBL-CL-PINT-IdentificationSchemeID-Extended, 1, 1),
normalize-space(@schemeID),
substring($VRBL-CL-PINT-IdentificationSchemeID-Extended, 1, 1)
)
)
)
)