VRBL-INV-AE-1p0-111

Basic Info

Rule When the Invoice Line Tax ID is 'AE' (Reverse charge), the corresponding Invoice Line Standard Item Identification 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'
)