Rules / IBR-146-AE
IBR-146-AE error
Charge amount * percentage /100 if base amount and percentage exists
Charge amount (IBT-099, IBT-141) must equal base amount (IBT-100, IBT-142) * percentage (IBT-101, IBT-143) /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 = true()]
Fix
Change the data so the statement above is true. Paste the invoice into the validator to see the exact element that fails.