VF-1108

El NIF del IDEmisorFactura debe ser el mismo que el NIF del ObligadoEmision (…, …).

In English The NIF of the invoice's issuer (IDEmisorFactura, or IDEmisorFacturaAnulada in a cancellation) must be the NIF of the taxpayer in the header (ObligadoEmision).

error: the document is invalid

Why it fails

  • The message is sent for one taxpayer, and a record in it is for an invoice another company issued.
  • The NIF is written differently in the two places, with a space, a lower-case letter or the country prefix ES.

How to fix it

Send each taxpayer's records in a message of their own, with that taxpayer in Cabecera/ObligadoEmision, and write the NIF the same way in both places.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Message

[1108] El NIF del IDEmisorFactura debe ser el mismo que el NIF del ObligadoEmision (…, …).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta
Test
normalize-space(*:IDFactura/*:IDEmisorFactura) = $issuer

Checked with VERI*FACTU invoice records

Message

[1108] El NIF del IDEmisorFactura debe ser el mismo que el NIF del ObligadoEmision (…, …).

Context
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAnulacion
Test
normalize-space(*:IDFactura/*:IDEmisorFacturaAnulada) = $issuer

Checked with VERI*FACTU invoice records