VRBL-INV-AE-1p0-111

Basic Info

Rule When the Invoiced Item Tax Category Code is 'AE' (Reverse charge), the corresponding Standard Item ID) MUST be provided and the Scheme Identifier MUST be '0160'.
Context /ubl:Invoice/cac:InvoiceLine/cac:Item
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(cac:ClassifiedTaxCategory/cbc:ID = 'AE' and cac:ClassifiedTaxCategory/cac:TaxScheme/cbc:ID = 'VAT')
or
(
	cac:StandardItemIdentification/cbc:ID 
	and cac:StandardItemIdentification/cbc:ID/@schemeID = '0160'
)