VRBL-INV-IT-1p2-160
Basic Info
|
Rule
|
The value of the Payment Terms Payment Terms Extension Payment Terms Code must be contained in Payment Terms Code [VRBL-CL-IT-PaymentTermsCode] (prefixed by 'VRBL:IT:'). Allowed values: VRBL:IT:TP01, VRBL:IT:TP02, VRBL:IT:TP03. |
|
Context
|
/ubl:Invoice/cac:PaymentTerms/cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:PaymentTermsExtension/vrbl:PaymentTermsCode
|
|
Pattern
|
vrbl-invoice-it-1p2 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-IT-Prefix:$VRBL-CL-IT-PaymentTermsCode
|
| showValues |
= |
true
|
Implementation
not(boolean(.))
or
(
(
substring(normalize-space(.), 1, string-length($VRBL-IT-Prefix)) = $VRBL-IT-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-IT-Prefix),
substring($VRBL-CL-IT-PaymentTermsCode, 1, 1)
)
)
and
contains(
$VRBL-CL-IT-PaymentTermsCode,
concat(
substring($VRBL-CL-IT-PaymentTermsCode, 1, 1),
substring-after(normalize-space(.), $VRBL-IT-Prefix),
substring($VRBL-CL-IT-PaymentTermsCode, 1, 1)
)
)
)
)