An Invoice may only have one unique PaymentID, but the PaymentID may be used for multiple PaymentMeans
/ubl:Invoice | /cn:CreditNote
count(//cbc:PaymentID[not(preceding::cbc:PaymentID/. = .)]) <= 1