Rules / IBR-042
IBR-042 error
Each Invoice line allowance
Each Invoice line allowance (ibg-27) must have an Invoice line allowance reason (ibt-139) or an Invoice line allowance reason code (ibt-140).
Fails when this is false
exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode) or not(exists(ancestor::cac:InvoiceLine|ancestor::cac:CreditNoteLine))The schematron test, verbatim. Context: cac:AllowanceCharge[cbc:ChargeIndicator = false()]
Fix
Change the data so the statement above is true. Paste the invoice into the validator to see the exact element that fails.