Message

Tax exclusive amount must equal the sum of line amount plus total charge amount at document level less total allowance amount at document level if tax exclusive amount is provided.

Context
cac:LegalMonetaryTotal
Test
not(cbc:TaxExclusiveAmount) or $taxExclusiveAmount = u:twodec($lineExtensionAmount) + u:twodec($chargeTotalAmount) - u:twodec($allowanceTotalAmount)
Usage
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:TaxExclusiveAmount