Rules / IBR-041
Each Invoice line allowance must have an Invoice line allowance amount
Each Invoice line allowance (ibg-27) must have an Invoice line allowance amount (ibt-136).
Fails when this is false
exists(cbc:Amount) 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 condition below holds. It reads cac:CreditNoteLine, cac:InvoiceLine, cbc:Amount. Paste the invoice into the validator to see the exact element that fails.