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
Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.