Rules / IBR-043
Each Invoice line charge must have an Invoice line charge amount
Each Invoice line charge (ibg-28) must have an Invoice line charge amount (ibt-141).
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 = true()]
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.