VRBL-INV-HU-1p0-27
Basic Info
|
Rule
|
The value of the Buyer Party Identification Scheme ID must be contained in Party Identification schemeID [VRBL-CL-HU-PartyIdentification-schemeID] (prefixed by 'VRBL:HU:'). Allowed values: VRBL:HU:TAX, VRBL:HU:TAX_GROUP. |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification/cbc:ID
|
|
Pattern
|
vrbl-invoice-hu-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@schemeID
|
| codeList |
= |
$VRBL-HU-Prefix:$VRBL-CL-HU-PartyIdentification-schemeID
|
| showValues |
= |
true
|
Implementation
not(boolean(@schemeID))
or
(
(
substring(normalize-space(@schemeID), 1, string-length($VRBL-HU-Prefix)) = $VRBL-HU-Prefix
and
not(
contains(
substring-after(normalize-space(@schemeID), $VRBL-HU-Prefix),
substring($VRBL-CL-HU-PartyIdentification-schemeID, 1, 1)
)
)
and
contains(
$VRBL-CL-HU-PartyIdentification-schemeID,
concat(
substring($VRBL-CL-HU-PartyIdentification-schemeID, 1, 1),
substring-after(normalize-space(@schemeID), $VRBL-HU-Prefix),
substring($VRBL-CL-HU-PartyIdentification-schemeID, 1, 1)
)
)
)
)