Skip to Content
Menú
This question has been flagged
2 Respostes
383 Vistes

Con verifactu tenemos que encadenar las facturas mediante un hash.


Supongamos que se va el servidor a mitad de día y no tengo copias de seguridad.
Evidentemente las facturas las puedo obtener del PDF o volver a realizar y no enviar a la AEAT (ya están), pero como vuelvo a generar facturas que se enlacen con las anteriores.


Aunque tenga el hash de la AEAT, no veo que haya algún supuesto para insertar de modo manual el hash de la factura anterior para volver a la situación normal y que la AEAT siga aceptando mis facturas.

Gracias

Avatar
Descartar
Autor Best Answer

El ultimo HASH lo puedo recuperar de la AEAT.
El problema es que no hay una situación 'especial' en el módulo de verifactu para introducir ese HASH y poder continuar la cadena de forma válida.
Habría posibilidad de implementar esto en el módulo para todo el mundo?

Como podría continuar la serie de facturas a partir de un HASH que tengo desde Verifactu en la AEAT. Como podría insertarlo en Odoo para que la siguiente factura cogiese dicho HASH y continuase con el encadenamiento?


Gracias

Avatar
Descartar
Best Answer

Hi,

In VeriFactu, each invoice must include a hash that references the previous invoice, creating an unbroken chain. If your server goes down and you lose part of the sequence, you cannot simply re-create invoices with the same hash manually — the integrity of the chain is critical, and AEAT requires that all breaks are traceable.


What you can do:


    Recover the last valid invoice hash: Check your database or any available backups/logs to retrieve the last successfully registered invoice hash.


    Resume from the last valid hash: When Odoo generates the next invoice, it will point to this hash, continuing the chain.


    Do not manually alter previous invoices: Spanish law forbids altering already issued VeriFactu invoices. If the chain is broken, you must document the incident.


    Fallback procedure: If invoices are lost and cannot be recovered, you need to issue new invoices with a proper explanation note (AEAT allows documenting exceptional cases like crashes).


    Prevention: Always set up automated daily database backups and, if possible, a redundant environment to avoid breaks in the invoice sequence.


In summary, you cannot “repair” the broken invoices but you can continue the chain from the last valid hash and document the interruption, which is compliant with AEAT requirements.


Hope it helps



Avatar
Descartar
Related Posts Respostes Vistes Activitat
2
de set. 25
288