Message

Expected total sum of allowance at document level MUST be equal to the sum of allowance amounts at document level, if expected total sum of allowance at document level is provided

Context
//cac:AnticipatedMonetaryTotal
Test
(cbc:AllowanceTotalAmount and (xs:decimal(cbc:AllowanceTotalAmount)) = (round(xs:decimal(sum(/ubl:Order/cac:AllowanceCharge[cbc:ChargeIndicator="false"]/cbc:Amount)) * 10 * 10) div 100)) or not(cbc:AllowanceTotalAmount)
Usage
/ ubl:Order / cac:AnticipatedMonetaryTotal / cbc:AllowanceTotalAmount