Account_es and cia

Also A3, one of the most installed software in Spain:

https://a3responde.wolterskluwer.es/documentos/contawin/como-puedo-renumerar-los-asientos.html

Odoo has a module to do that.

Sorry but I do not read this requirement. The only point is Art. 29 but it does not say that the ordering date is the accounting fact.

Indeed are neither described the numbering nor the date criteria, there is only a vague mention.

If there is no precise description of the requirements, it is not possible to provide a solution.

You’re right. But in this case the requirements appears at the moment of ledger/books presentation.
I would be charmed to give you a link with the requirement description but I couldn’t find it.
If someone else have this official information please post it.