An invoice number is an audit trail, not a label. It has to be unique, sequential, and long enough that you never have to widen it mid-year.
Enter a number to see the result.
Voided numbers are retired, not reused. The number is the only thing tying a document to a ledger entry, so a reused number is two different invoices with the same name.
An invoice number has to be unique and it has to be sequential. Unique means no two documents share one, ever, including across years and across systems. Sequential means the numbers rise without gaps you cannot explain — a gap is where an audit begins, because a missing number looks exactly like a missing invoice.
Everything else is preference. A prefix that identifies the entity or the client, a year segment that keeps the sequence short, and enough digits that you never run out. The one decision with consequences is the padding: three digits caps the scheme at 999 invoices, and if you cross that in November you have either to reuse numbers or to change format mid-year. Both are worse than typing one extra digit today.
Voided invoices are the normal source of gaps, and the fix is not to reuse the number — it is to record the void. A ledger with a void column and a printed log answers the auditor's question before it is asked; a ledger with a reused number answers nothing and looks like concealment even when it was a slip.
A numbering log for the next twelve numbers in your sequence, with the void column the audit trail depends on. Print it and keep it with the book.
Yes, if the year is part of the number. INV-2026-0001 and INV-2027-0001 are different numbers, so the sequence can restart. Without the year segment, restarting creates duplicates that no amount of care will untangle later.
Many tax regimes require a sequential series with no duplicates, and some require gaps to be explainable. The exact rule is local; what is safe everywhere is a strict sequence with voids recorded rather than reused.
Stop, and treat the second document as the one that is wrong: void it in the log, issue a credit note if money was paid against it, and re-issue under the next free number. Do not quietly relabel it.