VRBL-INV-PEPPOL-RCM-35
Basic Info
|
Rule
|
The value of the Invoice Line Charge Reason Code must be contained in UNCL 7161 [VRBL-CL-PEPPOL-UNCL-7161]. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cbc:AllowanceChargeReasonCode
|
|
Pattern
|
vrbl-invoice-peppol-bis3p0-reduced-codesmodel |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-PEPPOL-UNCL-7161
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-PEPPOL-UNCL-7161, 1, 1)
)
)
and
contains(
$VRBL-CL-PEPPOL-UNCL-7161,
concat(
substring($VRBL-CL-PEPPOL-UNCL-7161, 1, 1),
normalize-space(.),
substring($VRBL-CL-PEPPOL-UNCL-7161, 1, 1)
)
)
)
)