Rules / IBR-131-AE
IBR-131-AE error
Allowance amount * percentage /100 if base amount and percentage exists
Allowance amount (IBT-092, IBT-136) must equal base amount (IBT-093, IBT-137) * percentage (IBT-094, IBT-138) /100 if base amount and percentage exists.
Fails when this is false
not(exists(cbc:BaseAmount) and exists(cbc:MultiplierFactorNumeric)) or number(cbc:Amount) = (number(cbc:BaseAmount) * number(cbc:MultiplierFactorNumeric) div 100) or number(cbc:Amount) = round((number(cbc:BaseAmount) * number(cbc:MultiplierFactorNumeric) div 100) * 100) div 100The schematron test, verbatim. Context: cac:AllowanceCharge[cbc:ChargeIndicator = false()][not(ancestor::cac:Price)]
Fix
Change the data so the statement above is true. Paste the invoice into the validator to see the exact element that fails.