VRBL-INV-ES-B2G-14
Basic Info
|
Rule
|
The value of the Buyer Administrative Center ID must be contained in Administrative Center ID [VRBL-CL-ES-B2G-AdministrativeCenterID] (prefixed by 'VRBL:ES-B2G:'). Allowed values: VRBL:ES-B2G:01, VRBL:ES-B2G:02, VRBL:ES-B2G:03, VRBL:ES-B2G:04, VRBL:ES-B2G:06, VRBL:ES-B2G:07, VRBL:ES-B2G:08, VRBL:ES-B2G:09. |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:AccountingCustomerPartyExtension/vrbl:AdministrativeCentre/cbc:ID
|
|
Pattern
|
vrbl-invoice-es-b2g |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-ES-B2G-Prefix:$VRBL-CL-ES-B2G-AdministrativeCenterID
|
| showValues |
= |
true
|
Implementation
not(boolean(.))
or
(
(
substring(normalize-space(.), 1, string-length($VRBL-ES-B2G-Prefix)) = $VRBL-ES-B2G-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-ES-B2G-Prefix),
substring($VRBL-CL-ES-B2G-AdministrativeCenterID, 1, 1)
)
)
and
contains(
$VRBL-CL-ES-B2G-AdministrativeCenterID,
concat(
substring($VRBL-CL-ES-B2G-AdministrativeCenterID, 1, 1),
substring-after(normalize-space(.), $VRBL-ES-B2G-Prefix),
substring($VRBL-CL-ES-B2G-AdministrativeCenterID, 1, 1)
)
)
)
)