Rules / IBR-038
IBR-038 error
Each Document level charge
Each Document level charge (ibg-21) must have a Document level charge reason (ibt-104) or a Document level charge reason code (ibt-105).
Fails when this is false
((exists(cbc:AllowanceChargeReason) or exists(cbc:AllowanceChargeReasonCode)) and not(exists(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 statement above is true. Paste the invoice into the validator to see the exact element that fails.