Message

All amounts must have same currency code as document currency

Context
cbc:*[@currencyID]
Test
@currencyID = /ubl:OrderResponse/cbc:DocumentCurrencyCode
Usage
/ ubl:OrderResponse / cbc:DocumentCurrencyCode
/ ubl:OrderResponse / cac:TaxTotal / cbc:TaxAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:LineExtensionAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:TaxExclusiveAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:TaxInclusiveAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:AllowanceTotalAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:PrepaidAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:PayableRoundingAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:PayableAmount