Rules
Basic Info
|
Rule
|
When the Invoice Line Delivery Terms Scheme ID is INCOTERMS, the value of the Invoice Line Delivery Terms ID must be contained in INCOTERMS [VRBL-CL-DeliveryTermCode]. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:Delivery/cac:DeliveryTerms/cbc:ID
|
|
Pattern
|
vrbl-invoice-tr-1p2 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-CL-DeliveryTermCode
|
Implementation
(
not(@schemeID='INCOTERMS')
)
or
(
not(boolean(.))
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-DeliveryTermCode, 1, 1)
)
)
and
contains(
$VRBL-CL-DeliveryTermCode,
concat(
substring($VRBL-CL-DeliveryTermCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-DeliveryTermCode, 1, 1)
)
)
)
)
)