Generating Receipt Number

Im looking to generate receipt numbers on all purchases done on the site.

2023-04-03_13-58
This is my simple numbering solution (basic receipt system, no need to be fancy for now)

My challenge is, i would like to just have 5 numbers after the letter “A”. The problem is, i dont know how i should go about doing this. As seen in the image below.
2023-04-03_14-00

So basically, i just want it to start from, for example, A00001, A00002, and so on. Then when reaching double digits, it should be A00010, A00011, and so on. Eliminating the extra 0s i added maintaning the 5 digit receipt code. TIA!

2 Likes

Thanks bud! I cant stop smiling at this thread lol

2 Likes

This topic was automatically closed after 70 days. New replies are no longer allowed.