VRBL-INV-CORE-481
Basic Info
|
Rule
|
The value of the Invoice Line Charge Reason Code must be contained in UNCL7161 charge reason [VRBL-CL-ChargeReasonCode]. For more information visit: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL7161/ |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cbc:AllowanceChargeReasonCode
|
|
Pattern
|
vrbl-invoice-core |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-ChargeReasonCode
|
Implementation
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-ChargeReasonCode, 1, 1)
)
)
and
contains(
$VRBL-CL-ChargeReasonCode,
concat(
substring($VRBL-CL-ChargeReasonCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-ChargeReasonCode, 1, 1)
)
)
)
)