Rules / IBR-036
Charge must have a charge amount
Charge (ibg-21) must have a charge amount (ibt-099).
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 = 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.