Rules / IBR-031
IBR-031 error
Allowance
Allowance (ibg-20) must have an allowance amount (ibt-092).
Fails when this is false
((exists(cbc:Amount) and not(ancestor::cac:InvoiceLine | ancestor::cac:CreditNoteLine))) or (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.