VRBL-INV-EN16931-S-248

Basic Info

Rule The Payee Party Name Group must occur maximum once, if the Payee Party Name Group is different from the Seller Party Legal Entity Registration Name.
Context /ubl:Invoice/cac:PayeeParty
Pattern vrbl-invoice-en16931-ubl-syntax
Severity fatal

Implementation

(count(cac:PartyName/cbc:Name) <= 1)
and 
((cac:PartyName/cbc:Name) != (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))