VRBL-INV-MY-1p0-116
Basic Info
|
Rule
|
The value of the Invoice Line Tax ID must be contained in MY Tax Category ID [VRBL-CL-MY-TaxCategoryID] (prefixed by 'VRBL:MY:') or be contained in MY UNCL 5305 [VRBL-CL-MY-UNCL-5305]. Allowed values: VRBL:MY:01, VRBL:MY:02, VRBL:MY:03, VRBL:MY:04, VRBL:MY:05, VRBL:MY:06, VRBL:MY:E, VRBL:MY:O or E, O. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID
|
|
Pattern
|
vrbl-invoice-my-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
$VRBL-MY-Prefix:$VRBL-CL-MY-TaxCategoryID or $VRBL-CL-MY-UNCL-5305
|
| showValues |
= |
true
|
Implementation
not(boolean(.))
or
(
(
substring(normalize-space(.), 1, string-length($VRBL-MY-Prefix)) = $VRBL-MY-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-MY-Prefix),
substring($VRBL-CL-MY-TaxCategoryID, 1, 1)
)
)
and
contains(
$VRBL-CL-MY-TaxCategoryID,
concat(
substring($VRBL-CL-MY-TaxCategoryID, 1, 1),
substring-after(normalize-space(.), $VRBL-MY-Prefix),
substring($VRBL-CL-MY-TaxCategoryID, 1, 1)
)
)
)
)
or
(
(
not(
contains(
normalize-space(.),
substring($VRBL-CL-MY-UNCL-5305, 1, 1)
)
)
and
contains(
$VRBL-CL-MY-UNCL-5305,
concat(
substring($VRBL-CL-MY-UNCL-5305, 1, 1),
normalize-space(.),
substring($VRBL-CL-MY-UNCL-5305, 1, 1)
)
)
)
)