Hello,
I’m trying to get my Invoices to only list a single sequential number that reverts to 0 on Jan 1st and gets +1 for every confirmed invoice throughout the year.
I tried looking into Naming Series but I can’t just use .### and reset it at the beginning of the year as I guess that will conflict with last year’s invoices.
How can I implement this function?
I’m based in Italy, where invoices follow a numbering scheme like this:
n°1 - 10/01/2022
n°2 - 05/03/2022
[...]
n°22 - 03/07/2022
[... new year ...]
n°1 - 08/01/2023 etc.
A workaround I thought about is this: Use a naming series which includes .YYYY and reset the number manually every new year. Filter the text out to only get the sequential number. I’m not sure how I could do that though.
Is there an easier way?
I’m happy to script something but might need a little info on how to integrate that in the DocType + how to store a sequential counter’s value permanently, since my machine gets switched off every evening.
TIA