Skip to content
SmartFormular

SmartFormular › SmartFormular E-Invoice Start › Validation rules › BR-AF-01

BR-AF-01

Lines, allowances or charges use the VAT category "IGIC (Canary Islands)" (L), but the VAT breakdown (BG-23) does not list it correctly

Validation rule of EN 16931 (CEN, rule set 1.3.16) · Level: Error

What the message means

Lines, allowances or charges use the VAT category "IGIC (Canary Islands)" (L), but the VAT breakdown (BG-23) does not list it correctly.

What the issuer needs to change

Add a VAT breakdown entry for L (exactly one).

Fields concerned

  • BG-20 document level allowances
  • BG-21 document level charges
  • BG-23 VAT breakdown
  • BG-25 invoice line
  • BT-95 document level allowance VAT category code
  • BT-102 document level charge VAT category code
  • BT-118 VAT category code
  • BT-151 invoiced item VAT category code

Your invoice reports BR-AF-01? Check it with SmartFormular E-Invoice Start, free to try until 31 December 2026: the tool shows every finding with an explanation, the invoice in readable form and a GiroCode to pay – in your browser, no upload.

Check an e-invoice

Origin

Rule set
EN 16931 (CEN, rule set 1.3.16)
Syntax
CII, UBL
Level
Error

Original rule text

An Invoice that contains an Invoice line (BG-25), a Document level allowance (BG-20) or a Document level charge (BG-21) where the VAT category code (BT-151, BT-95 or BT-102) is "IGIC" shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with "IGIC".

Source: CEN/TC 434, EN 16931 validation rules 1.3.16, European Union Public Licence 1.2

Technical details for IT

UBL

Context: /ubl:Invoice | /cn:CreditNote
Test: not(((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])) > 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[cbc:ID = 'L']) > 0) or ((count(//cac:AllowanceCharge/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) + count(//cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'])) = 0 and count(cac:TaxTotal/cac:TaxSubtotal/cac:TaxCategory[normalize-space(cbc:ID) = 'L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']) = 0))

CII

Context: /rsm:CrossIndustryInvoice
Test: not(((count(//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L'])) >=2 or not (//ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L'])) and      ((count(//ram:CategoryTradeTax[ram:CategoryCode='L']) + count(//ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax[ram:CategoryCode='L'])) >=2 or not (//ram:CategoryTradeTax[ram:CategoryCode='L'])))

Related rules

  • BR-AE-08The taxable amount for "reverse charge" (AE) in the VAT breakdown (BT-116) does not match the lines, …
  • BR-AE-09With "reverse charge" (AE) the VAT amount in the breakdown (BT-117) must be 0
  • BR-AE-10The invoice shows no VAT – category "reverse charge" (AE) – but gives no reason (BT-120 or BT-121)
  • BR-AF-02For lines with "IGIC (Canary Islands)" (L), the seller's VAT number or tax number (BT-31, BT-32) is missing
  • BR-AF-03For an allowance with "IGIC (Canary Islands)" (L), the seller's VAT number or tax number (BT-31, BT-32) is …
  • BR-AF-04For a charge with "IGIC (Canary Islands)" (L), the seller's VAT number or tax number (BT-31, BT-32) is missing

All validation rules

Technical explanation by SmartFormular, not tax or legal advice. Rules as of 31 August 2026 (KoSIT validator configuration).