InvoiceValidator.eu

BR-AF-07

fatalEN 16931EN 16931 business ruleCIIUBLBG-21BT-102BT-103

In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "IGIC" the Document level charge VAT rate (BT-103) shall be 0 (zero) or greater than zero.

Why it fails

A document level charge with VAT category IGIC (AF) has a VAT rate (BT-103) that is not allowed: it must be 0 or greater.

How to fix it

IGIC (Canary Islands) permits a zero or positive rate; make sure it is one of the valid IGIC rates. Or change the charge's category code so the two agree.

What the validator checks

CII — context $VATAF_Charge

ram:RateApplicablePercent > 0

UBL — context cac:AllowanceCharge[cbc:ChargeIndicator=true()]/cac:TaxCategory[normalize-space(cbc:ID)='L'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']

(cbc:Percent) >= 0

Related rules

Part of BR-AF — IGIC (Canary Islands).

Check your own invoice against BR-AF-07

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.