Rules / IBR-167-AE
IBR-167-AE error
Line VAT information 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 statement above is true. Paste the invoice into the validator to see the exact element that fails.