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