VRBL-INV-SA-1p2-17

Basic Info

Rule If the Buyer Country Identification Code is not equal to 'SA', then Invoice Type Code must not be equal "389".
Context /ubl:Invoice
Pattern vrbl-invoice-sa-1p2
Severity fatal

Implementation

not(cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode != 'SA') 
or 
not(cbc:InvoiceTypeCode = '389')