VRBL-INV-DE-XR-45
Basic Info
|
Rule
|
The Seller Tax ID or the Tax Representative Tax Company ID must exist for certain Allowance Tax ID values. If they do not exist the value of the Allowance Tax ID must not be contained in VAT [VRBL-CL-SupportedVATCode]. Not allowed values: AE, E, G, K, L, M, S, Z. |
|
Context
|
/ubl:Invoice/cac:AllowanceCharge[string(cbc:ChargeIndicator) = 'false']/cac:TaxCategory/cbc:ID
|
|
Pattern
|
vrbl-invoice-de-xr-3p0 |
|
Severity
|
fatal |
Used Template: CodeList
| Parameter |
|
Value |
| probe |
= |
.
|
| codeList |
= |
!$VRBL-CL-SupportedVATCode
|
| showValues |
= |
true
|
Implementation
(
boolean(/ubl:Invoice/cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID) or boolean(/ubl:Invoice/cac:TaxRepresentativeParty/cac:PartyTaxScheme/cbc:CompanyID)
)
or
(
not(boolean(.))
or
(
not(
not(
contains(
normalize-space(.),
substring($VRBL-CL-SupportedVATCode, 1, 1)
)
)
and
contains(
$VRBL-CL-SupportedVATCode,
concat(
substring($VRBL-CL-SupportedVATCode, 1, 1),
normalize-space(.),
substring($VRBL-CL-SupportedVATCode, 1, 1)
)
)
)
)
)