Message

The Payee name (BT-59) shall be provided in the Invoice, if the Payee (BG-10) is different from the Seller (BG-4)

Context
cac:PayeeParty
Test
exists(cac:PartyName/cbc:Name) and (not(cac:PartyName/cbc:Name = ../cac:AccountingSupplierParty/cac:Party/cac:PartyName/cbc:Name) and not(cac:PartyIdentification/cbc:ID = ../cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID) )
Usage
/ ubl:Invoice / cac:PayeeParty / cac:PartyName / cbc:Name
/ ubl:CreditNote / cac:PayeeParty / cac:PartyName / cbc:Name