fatalEN 16931syntax binding ruleUBL
An Invoice may only have one unique PaymentID, but the PaymentID may be used for multiple PaymentMeans
Several different PaymentIDs appear on the invoice.
One invoice carries one payment reference (BT-83). You may repeat the same PaymentID across several PaymentMeans, but they must all be identical.
UBL — context /ubl:Invoice | /cn:CreditNote
count(//cbc:PaymentID[not(preceding::cbc:PaymentID/. = .)]) <= 1