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