VRBL-INV-AE-1p0-46

Basic Info

Rule An Line Tax Information with Invoiced Item Tax Scheme Code = VAT and Invoiced Item Tax Category Code = 'AE', shall contain the Buyer Tax ID.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(
(cac:TaxScheme/cbc:ID = 'VAT') and (cbc:ID = 'AE')
)
or
(
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID
)