VRBL-INV-EN16931-M-77
Basic Info
| Rule | An Invoice that contains an Invoice Line, a Document Level Allowances or a Document Level Charges where the Tax Subtotal Category ID is "IPSI" must contain at least one Tax Subtotal Category ID equal with "IPSI". |
| Context |
/ubl:Invoice
|
| Pattern | vrbl-invoice-en16931-ubl-model |
| Severity | fatal |
Implementation
((count(cac:AllowanceCharge/cac:TaxCategory[cbc:ID = 'M'][cac:TaxScheme/cbc:ID = 'VAT']) + count(cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cbc:ID = 'M'][cac:TaxScheme/cbc:ID = 'VAT'])) > 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cbc:ID = 'M'][cac:TaxScheme/cbc:ID = 'VAT']) > 0) or ((count(cac:AllowanceCharge/cac:TaxCategory[cbc:ID = 'M'][cac:TaxScheme/cbc:ID = 'VAT']) + count(cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[cbc:ID = 'M'][cac:TaxScheme/cbc:ID = 'VAT'])) = 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cbc:ID = 'M'][cac:TaxScheme/cbc:ID = 'VAT']) = 0)