Validation message

[UBL-SR-47]-When there are more than one payment means code, they shall be equal

Context

/ubl:Invoice | /cn:CreditNote

XPath

1

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

Used in business terms