AttestwireRule referenceBR-AF-09

BR-AF-09 Canary Islands IGIC must equal the taxable amount times the rate

noun · EN 16931 · fatal · BT-117

For a sample invoice, the library reports: The VAT breakdown for category L at 7% states a VAT amount (BT-117) of 0.00 EUR on a taxable amount of 55.55, which at that rate is 3.89. BR-AF-09 allows a difference of strictly less than 1.00.

Business term
BT-117
Severity
fatal

The fix

Compute the group's VAT amount from its own taxable amount and rate, and check the rate matches the lines in the group.

What the library returns

The full error returned by @attestwire/en16931. It includes the rule ID, affected field and suggested correction. Developers can use this object in their application:

TeachingError
{
  "rule": "BR-AF-09",
  "field": "BT-117",
  "severity": "fatal",
  "message": "The VAT breakdown for category L at 7% states a VAT amount (BT-117) of 0.00 EUR on a taxable amount of 55.55, which at that rate is 3.89. BR-AF-09 allows a difference of strictly less than 1.00.",
  "fix": "Compute the group's VAT amount from its own taxable amount and rate, and check the rate matches the lines in the group.",
  "xpath": "/ubl:Invoice/cac:TaxTotal/cac:TaxSubtotal/cbc:TaxAmount",
  "docsUrl": "https://attestwire.com/rules/BR-AF-09"
}

xpath is always a UBL path. On a CII invoice, look for the matching CII field instead.