Message

Tax exclusive amount SHALL 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 = $lineExtensionAmount + $chargeTotalAmount - $allowanceTotalAmount
Usage
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:TaxExclusiveAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:AllowanceTotalAmount
/ ubl:OrderResponse / cac:LegalMonetaryTotal / cbc:ChargeTotalAmount
/ ubl:OrderResponse / cac:OrderLine / cac:LineItem / cbc:LineExtensionAmount