Message

[UBL-SR-21]-Payee legal registration identifier shall occur maximum once, if the Payee is different from the Seller

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