VRBL-INV-IT-1p2-7

Basic Info

Rule For the Invoice Type Code "TD17", "TD18", "TD19", the Seller Country Identification Code must not equal "IT".
Context /ubl:Invoice
Pattern vrbl-invoice-it-1p2
Severity fatal

Implementation

not(
	cbc:InvoiceTypeCode = concat($VRBL-IT-Prefix, 'TD17')
	or
	cbc:InvoiceTypeCode = concat($VRBL-IT-Prefix, 'TD18')
	or
	cbc:InvoiceTypeCode = concat($VRBL-IT-Prefix, 'TD19')
)
or
not(cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'IT')