Message

VAT accounting currency code MUST be different from invoice currency code when provided.

Context
cbc:TaxCurrencyCode
Test
not(normalize-space(text()) = normalize-space(../cbc:DocumentCurrencyCode/text()))
Usage
/ ubl:Invoice / cbc:TaxCurrencyCode
/ ubl:CreditNote / cbc:TaxCurrencyCode