Rules / IBR-169-AE
Document level charge with Document level charge VAT category code as 'Exempt from VAT' must have a Document level charge VAT exemption reason code
Document level charge (IBG-21) with Document level charge VAT category code (IBT-102) as 'Exempt from VAT' must have a Document level charge VAT exemption reason code (IBT-198).
Fails when this is false
not(cac:TaxCategory/cbc:ID = "E" and not(exists(cbc:AllowanceChargeReasonCode)))The schematron test, verbatim. Context: cac:AllowanceCharge[cbc:ChargeIndicator = true()]
Fix
Change the data so the condition below holds. It reads cac:TaxCategory, cbc:AllowanceChargeReasonCode, cbc:ID. Paste the invoice into the validator to see the exact element that fails.