Rules
Basic Info
|
Rule
|
When the Invoice Line does not contain a Sub Invoice Line Group and the Invoice Line Information Only Indicator is not true, the Invoiced Item Tax Category Code used for VAT must exist within the Invoice Line. |
|
Context
|
/ubl:Invoice/cac:InvoiceLine
|
|
Pattern
|
vrbl-invoice-fr-cius-1p0-min |
|
Severity
|
fatal |
Used Template: Exists
| Parameter |
|
Value |
| probe |
= |
cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID
|
| displayName_probe |
= |
%{cac:Item/cac:ClassifiedTaxCategory/cbc:ID} used for VAT
|
Implementation
(
boolean(cac:SubInvoiceLine) or (boolean(cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:InformationOnlyIndicator) and cec:UBLExtensions/cec:UBLExtension/cec:ExtensionContent/vrbl:InvoiceLineExtension/vrbl:InformationOnlyIndicator='true')
)
or
(
boolean(cac:Item/cac:ClassifiedTaxCategory[cac:TaxScheme/cbc:ID = 'VAT']/cbc:ID)
)