# VF-2005

Source: https://xmlvalid.com/rules/VF-2005

> El campo ImporteTotal tiene un valor incorrecto para el valor de los campos BaseImponibleOimporteNoSujeto, CuotaRepercutida y CuotaRecargoEquivalencia suministrados (…, …).

- Level: warning
- Rule sets: VERI*FACTU checks of the AEAT Validaciones 1.2.2 (8 April 2026)
- Context: `/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta`
- Test: `$special or abs($total - $sum) le 10`

In English: ImporteTotal is more than 10 euros away from the sum of the breakdown's bases, tax amounts and equivalence surcharges. The record is accepted with errors to correct. Not checked with regimes 03, 05, 06, 08 and 09.

## Why it fails

- Withholding (IRPF) taken off the total: ImporteTotal is the invoice total before withholding.
- A breakdown line missing, such as the exempt or not subject part of the invoice.

## How to fix it

- Give every part of the invoice in the breakdown, and ImporteTotal as bases plus tax plus surcharge, without subtracting withholding.

Validate a document against these rules: https://xmlvalid.com/validate
