Blesta Addons Posted December 4, 2019 Report Share Posted December 4, 2019 Blesta support the tag {num} in invoice, it would be nice to add a numbering format like (0001) or (001) . for example if i set the fallowing {year}{num}, the output will be like this (20191, 20192,...... 2019251 .....ect ), we need to add some zeros leading to get a nice numbering like (20190001, 20190002,...... 20190251 .....ect ) . hope we can be gin the new year invoice numbering with this feature. i simple str_pad() or sprintf() functions can do the trick . Quote Link to comment Share on other sites More sharing options...
Paul Posted December 4, 2019 Report Share Posted December 4, 2019 So you want to pad the invoice to have a certain number of characters? For example, a padding value of 8 would cause the number portion of the invoice to contain 8 characters, e.g. 00000001 00000002 ... 00001234 Then if you prepend the date year in the front you might have: 201900001234 Is that what you are looking for? This could potentially be a setting under Settings > Company > Billing/Payment > Invoice Customization.. but what happens if your invoice number exceed the padding length? For example you have 99999999 what's the next number? Does it expand to 9 characters? Quote Link to comment Share on other sites More sharing options...
Tyson Posted December 5, 2019 Report Share Posted December 5, 2019 57 minutes ago, Paul said: but what happens if your invoice number exceed the padding length? For example you have 99999999 what's the next number? Does it expand to 9 characters? It would have to expand to the next digit. Blesta Addons 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted December 5, 2019 Author Report Share Posted December 5, 2019 18 hours ago, Paul said: Is that what you are looking for? yes. 18 hours ago, Paul said: but what happens if your invoice number exceed the padding length? For example you have 99999999 what's the next number? Does it expand to 9 characters? the answer : 17 hours ago, Tyson said: It would have to expand to the next digit. Quote Link to comment Share on other sites More sharing options...
Bud Manz Posted December 6, 2019 Report Share Posted December 6, 2019 I would love to see this feature... I would like to use {year}{month}-0001 (plus a prefix) for my numbers since I don't have more than 9,999 invoices in a month's time. Blesta Addons 1 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted December 12, 2019 Author Report Share Posted December 12, 2019 Hope it could be implemented soon Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.