Automatic numbering of sales invoices

I am starting invoice number with 1234567 in year 2023, now I want to start with 202401 how?

https://www2.manager.io/guides/18764

Not sure if you mean by 1234567 that number or that it just start with 1 and then 2 and 3, etc.I assume that the 202401 represents the year 2024 and the starting number 01. Note that as soon as you reach 99 sales invoices that number would change the year to 2025(00). So you are advised to use many more digits and also more than the largest sales invoice number in 2023.