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).
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.
[1108] El NIF del IDEmisorFactura debe ser el mismo que el NIF del ObligadoEmision (…, …).
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAlta
normalize-space(*:IDFactura/*:IDEmisorFactura) = $issuer
Checked with VERI*FACTU invoice records
[1108] El NIF del IDEmisorFactura debe ser el mismo que el NIF del ObligadoEmision (…, …).
/*:RegFactuSistemaFacturacion/*:RegistroFactura/*:RegistroAnulacion
normalize-space(*:IDFactura/*:IDEmisorFacturaAnulada) = $issuer
Checked with VERI*FACTU invoice records