VRBL-INV-AE-1p0-77

Basic Info

Rule The Buyer Party Legal Entity Company ID MUST be present when the Invoice Type Code is '480' or '81'.
Context /ubl:Invoice
Pattern vrbl-invoice-AE-1p0
Severity fatal

Implementation

not(cbc:InvoiceTypeCode = '480' or cbc:InvoiceTypeCode = '81')
or
cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID