Message

An Invoice may only have one unique PaymentID, but the PaymentID may be used for multiple PaymentMeans

Context
/ubl:Invoice | /cn:CreditNote
Test
count(distinct-values(//cbc:PaymentID)) <= 1