VRBL-INV-DE-XR-56
Basic Info
|
Rule
|
The Seller Tax ID or the Tax Representative Tax Company ID must exist for certain Invoice Line Tax ID values. If they do not exist the value of the Invoice Line 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:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/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)
)
)
)
)
)