Validation message

[UBL-SR-44]-An Invoice may only have one unique PaymentID, but the PaymentID may be used for multiple PaymentMeans

Context

/ubl:Invoice | /cn:CreditNote

XPath

1

count(//cbc:PaymentID[not(preceding::cbc:PaymentID/. = .)]) <= 1

Used in business terms