Invoices - Add invoice number when invoice is Approved
Recently found out that draft invoices are assigned a number once created, even if they are eventually not approved and deleted.
For accounting reasons in Spain, the numbering on all invoices presented has to be consecutive and the fact that draft invoices are assigned a number from the same sequence causes a problem. So basically if a draft invoice ends up being deleted, then when presenting the invoice list to the tax authorities, there is a number missing, which could cause a problem.
My suggestion would be that the sequence number is not assigned until the invoice has been approved and is ready to be sent to customer.

-
Simon Peers commented
I totally agree, we also need to have sequential numbers in the UK. Often i want to issue a few ad-hoc invoices but find that there are draft repeated invoices waiting so it is a right pain to try to change numbers resulting in gaps for me. Surely drafts are just that until approved?