[ibr-co-12]-Sum of charges on document level (ibt-108) = Σ Document level charge amount (ibt-099).
ibr-co-12
cac:LegalMonetaryTotal
xs:decimal(cbc:ChargeTotalAmount) = (round(sum(../cac:AllowanceCharge[cbc:ChargeIndicator=true()]/xs:decimal(cbc:Amount)) * 10 * 10) div 100) or (not(cbc:ChargeTotalAmount) and not(../cac:AllowanceCharge[cbc:ChargeIndicator=true()]))