VRBL-INV-CN-1p0-11

Basic Info

Rule When the Invoice Type Code is 380, the Seller Name must exist within the Seller Party.
Context /ubl:Invoice/cac:AccountingSupplierParty/cac:Party
Pattern vrbl-invoice-cn-1p0
Severity fatal

Used Template: Exists

Parameter Value
probe = cac:PartyLegalEntity/cbc:RegistrationName

Implementation

(
	not(/ubl:Invoice/cbc:InvoiceTypeCode = '380')
)
or
(
	boolean(cac:PartyLegalEntity/cbc:RegistrationName)
)