Message

Total sum of charges at document level SHALL be equal to the sum of charges at document level, if total sum of charges at document level is provided.

Context
cac:LegalMonetaryTotal
Test
not(cbc:ChargeTotalAmount) or $chargeTotalAmount = $chargeTotal
Usage
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount
/ ubl:OrderResponse / cac:OrderLine / cac:LineItem / cac:Price / cac:AllowanceCharge / cbc:Amount