VRBL-INV-AE-1p0-75

Basic Info

Rule An Seller Tax ID marked as 'VAT' must be present except Invoice Type Code is "480" or "81".
Context /ubl:Invoice
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

(cbc:InvoiceTypeCode = '480' or cbc:InvoiceTypeCode = '81')
or
boolean(cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme[cac:TaxScheme/cbc:ID = 'VAT']/cbc:CompanyID)