Rules / ALIGNED-IBRP-048
Each VAT breakdown must have a VAT category rate, except if the Invoice is not subject to VAT or Exempt from Tax
Each VAT breakdown (ibg-23) must have a VAT category rate (ibt-119), except if the Invoice is not subject to VAT or Exempt from Tax.
Fails when this is false
exists(cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/cbc:Percent) or (cac:TaxCategory[cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']/normalize-space(cbc:ID)=('O','E'))The schematron test, verbatim. Context: cac:TaxSubtotal
Fix
Change the data so the condition below holds. It reads cac:TaxCategory, cbc:ID, cbc:Percent. Paste the invoice into the validator to see the exact element that fails.