VRBL-INV-HR-CIUS-1p0-9
Basic Info
|
Rule
|
The Charge Tax Exemption Reason or the Charge Tax Exemption Reason Code must exist for certain Charge Tax ID values. If it does not exist the value of the Charge Tax ID must not be contained in Exempt Tax Category IDs [VRBL-CL-HR-Exempt-TaxCategoryID] (prefixed by 'VRBL:HR:'). Not allowed values: VRBL:HR:HR:E, VRBL:HR:HR:N, VRBL:HR:HR:O, VRBL:HR:HR:POVNAK, VRBL:HR:HR:PP, VRBL:HR:HR:PPMV. |
|
Context
|
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'true']/cac:TaxCategory/cbc:ID
|
|
Pattern
|
vrbl-invoice-hr-cius-1p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
!$VRBL-HR-CIUS-Prefix:$VRBL-CL-HR-Exempt-TaxCategoryID
|
| showValues |
= |
true
|
Implementation
(
boolean(../cbc:TaxExemptionReason) or boolean(../cbc:TaxExemptionReasonCode)
)
or
(
not(boolean(.))
or
(
not(
substring(normalize-space(.), 1, string-length($VRBL-HR-CIUS-Prefix)) = $VRBL-HR-CIUS-Prefix
and
not(
contains(
substring-after(normalize-space(.), $VRBL-HR-CIUS-Prefix),
substring($VRBL-CL-HR-Exempt-TaxCategoryID, 1, 1)
)
)
and
contains(
$VRBL-CL-HR-Exempt-TaxCategoryID,
concat(
substring($VRBL-CL-HR-Exempt-TaxCategoryID, 1, 1),
substring-after(normalize-space(.), $VRBL-HR-CIUS-Prefix),
substring($VRBL-CL-HR-Exempt-TaxCategoryID, 1, 1)
)
)
)
)
)