Error codes · EN 16931 · ES

BR-AF-01Partly

IGIC invoice must have a matching VAT breakdown entry

This is the rejection, word for word: „[BR-AF-01] When an invoice contains a line, document-level allowance, or document-level charge with VAT category code (BT-151, BT-95, or BT-102) equal to 'L' (IGIC — Impuesto General Indirecto Canario), the VAT breakdown (BG-23) must include at least one entry with VAT category code (BT-118) equal to 'L'.“

Schematron rule BR-AF-01: if any of cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory/cbc:ID, cac:AllowanceCharge/cac:TaxCategory/cbc:ID or their document-level equivalents equals 'L', then cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory/cbc:ID must include at least one 'L' entry. The IGIC category applies to invoices issued in the Canary Islands under the Spanish special tax regime.

What to have readyThe correct figures from your bookkeeping; we show you which field is affected.
What we doAdd a TaxSubtotal block with TaxCategory ID = 'L' summarising the IGIC-taxed portion of the invoice. Invoice Navigator generates the missing breakdown from the line-level detail automatically.
If you enter it yourself in your invoicing software
Before
<cac:InvoiceLine>
  <cac:Item>
    <cac:ClassifiedTaxCategory>
      <cbc:ID>L</cbc:ID>
      <cbc:Percent>7</cbc:Percent>
    </cac:ClassifiedTaxCategory>
  </cac:Item>
</cac:InvoiceLine>
<cac:TaxTotal>
  <!-- Only 'S' subtotals present, no 'L' block -->
</cac:TaxTotal>
After
<cac:TaxTotal>
  <cac:TaxSubtotal>
    <cbc:TaxableAmount currencyID="EUR">1000.00</cbc:TaxableAmount>
    <cbc:TaxAmount currencyID="EUR">70.00</cbc:TaxAmount>
    <cac:TaxCategory>
      <cbc:ID>L</cbc:ID>
      <cbc:Percent>7</cbc:Percent>
      <cac:TaxScheme><cbc:ID>VAT</cbc:ID></cac:TaxScheme>
    </cac:TaxCategory>
  </cac:TaxSubtotal>
</cac:TaxTotal>