BR-AF-05 A line uses VAT category L (Canary Islands general indirect tax (IGIC)), so the invoiced item VAT rate (BT-152) must be 0 (zero) or greater than zero, but it is missing
Line 1 uses VAT category L (Canary Islands general indirect tax (IGIC)), so the invoiced item VAT rate (BT-152) must be 0 (zero) or greater than zero, but it is missing. IGIC is a tax that is actually charged, so the rate is the substance of the line, not decoration — and unlike category S, L does admit a rate of exactly 0, because IGIC relieves some supplies by rate rather than by exemption. What it does not admit is silence, or a negative figure.
This rule is implemented and its error payload below is real, but the long-form write-up — normative text, worked example, divergence note — is not written yet. Everything the library knows about this rule is on this page. Ask and we will prioritise it.
- Business term
BT-152- Severity
fatal
What the library returns
The exact object in result.errors when this rule fires.
Generated by running @attestwire/en16931, not transcribed:
{
"rule": "BR-AF-05",
"field": "BT-152",
"severity": "fatal",
"message": "Line 1 uses VAT category L (Canary Islands general indirect tax (IGIC)), so the invoiced item VAT rate (BT-152) must be 0 (zero) or greater than zero, but it is missing. IGIC is a tax that is actually charged, so the rate is the substance of the line, not decoration — and unlike category S, L does admit a rate of exactly 0, because IGIC relieves some supplies by rate rather than by exemption. What it does not admit is silence, or a negative figure.",
"fix": "Set line.vatRate to the applicable IGIC percentage as a number. IGIC is the Canary Islands tax and its bands are set nationally: 7 for the general rate, 0 for a zero-rated Canarian supply, and 3, 9.5, 15 or 20 for the reduced and increased bands. If the supply is in mainland Spain and bears VAT rather than IGIC, the category is S.",
"example": "\"vatCategory\": \"L\", \"vatRate\": 7",
"xpath": "/ubl:Invoice/cac:InvoiceLine[1]/cac:Item/cac:ClassifiedTaxCategory/cbc:Percent",
"docsUrl": "https://attestwire.com/rules/BR-AF-05"
}
xpath locates the element in the generated UBL document,
which is where a KoSIT or Peppol validator will report the same problem.
A passing value
"vatCategory": "L", "vatRate": 7The fix
Set line.vatRate to the applicable IGIC percentage as a number. IGIC is the Canary Islands tax and its bands are set nationally: 7 for the general rate, 0 for a zero-rated Canarian supply, and 3, 9.5, 15 or 20 for the reduced and increased bands. If the supply is in mainland Spain and bears VAT rather than IGIC, the category is S.