VRBL-INV-AE-1p0-46

Basic Info

Rule An Invoice Line Tax Group with Invoice Line Tax Scheme ID = VAT and Invoice Line Tax ID = 'AE', shall contain the Buyer Tax Company 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
)