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.
cac:LegalMonetaryTotal
not(cbc:AllowanceTotalAmount) or $allowanceTotalAmount = $allowanceTotal