Rules / ALIGNED-IBRP-S-10
A VAT breakdown with VAT Category code "Standard rate" must not have a VAT exemption reason code or VAT exemption reason text
A VAT breakdown (ibg-23) with VAT Category code (ibt-118) "Standard rate" must not have a VAT exemption reason code (IBT-186) or VAT exemption reason text (IBT-185).
Fails when this is false
not(cbc:TaxExemptionReason) and not(cbc:TaxExemptionReasonCode)The schematron test, verbatim. Context: /*/cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'S'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']
Fix
Change the data so the condition below holds. It reads cbc:TaxExemptionReason, cbc:TaxExemptionReasonCode. Paste the invoice into the validator to see the exact element that fails.