Message

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

Context
cac:LegalMonetaryTotal
Test
not(cbc:AllowanceTotalAmount) or $allowanceTotalAmount = $allowanceTotal
Usage
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:AllowanceTotalAmount
/ ubl:OrderResponse / cac:OrderLine / cac:LineItem / cac:Price / cac:AllowanceCharge / cbc:Amount