Validation message

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

UBL

Context

1

/ubl:Invoice | /cn:CreditNote

Rule

1

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

Used in business terms