VRBL-INV-PEPPOL-PINT-260
Basic Info
|
Rule
|
The value of the Invoice Line Quantity Unit Code must be contained in UN/ECE Recommendation 20 with Rec 21 extension [VRBL-CL-PINT-UNECE-Rec-20-X21]. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cbc:InvoicedQuantity
|
|
Pattern
|
vrbl-invoice-peppol-pint |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
@unitCode
|
| codeList |
= |
$VRBL-CL-PINT-UNECE-Rec-20-X21
|
Implementation
not(boolean(@unitCode))
or
(
(
not(
contains(
normalize-space(@unitCode),
substring($VRBL-CL-PINT-UNECE-Rec-20-X21, 1, 1)
)
)
and
contains(
$VRBL-CL-PINT-UNECE-Rec-20-X21,
concat(
substring($VRBL-CL-PINT-UNECE-Rec-20-X21, 1, 1),
normalize-space(@unitCode),
substring($VRBL-CL-PINT-UNECE-Rec-20-X21, 1, 1)
)
)
)
)