Rules / IBR-167-AE
Line VAT information with Invoiced item VAT category code as 'Exempt from VAT' must have a VAT exemption reason code
Line VAT information (IBG-30) with Invoiced item VAT category code (IBT-151) as 'Exempt from VAT' must have a VAT exemption reason code (IBT-186).
Fails when this is false
not(cac:Item/cac:ClassifiedTaxCategory/cbc:ID = "E" and not(exists(cac:Item/cac:ClassifiedTaxCategory/cbc:TaxExemptionReasonCode)))The schematron test, verbatim. Context: cac:InvoiceLine | cac:CreditNoteLine
Fix
Change the data so the condition below holds. It reads cac:ClassifiedTaxCategory, cac:Item, cbc:ID, cbc:TaxExemptionReasonCode. Paste the invoice into the validator to see the exact element that fails.