There aren't really any rules exactly. But there are some general guidelines....
All invoices should have a completely unique number. Never repeat a number for any reason. You should start with a number and go up, never repeating any number. Invoice numbers should not be "customized" for a client specifically. But you can use some clever values if they will assist you.
For example.....
I like to use the last 2 digits of every invoice as the year it was sent.
So this year I use...
- #0505520
- #0505620
- #0505720
- ....
- ....
- #0532120
- etc....
I know the last two digits are always the year. So I can find invoice 5056 which was sent in 2020 easily. Next year all my invoices will end in "21". Last year they all ended in "19".
This allows me, at a glance, to know what year the invoice was created. This helps to merely know when any project was completed or worked on. It's not used for any other accounting purposes. This way I don't have to actually go find an invoice to know the year it was sent.
Tip
... start with at least 5 or 6 digits, using leading zeros. A la 00001, 00002, 00003, etc. You''ll be glad you did this when viewing columns of invoice numbers. It'll make legibility easier if they all have the same amount of actual glyphs.