Blesta Addons Posted December 4, 2019 Report 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 .
Paul Posted December 4, 2019 Report 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?
Tyson Posted December 5, 2019 Report Posted December 5, 2019 On 12/4/2019 at 11:07 PM, 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? Expand It would have to expand to the next digit. Blesta Addons 1
Blesta Addons Posted December 5, 2019 Author Report Posted December 5, 2019 On 12/4/2019 at 11:07 PM, Paul said: Is that what you are looking for? Expand yes. On 12/4/2019 at 11:07 PM, 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? Expand the answer : On 12/5/2019 at 12:05 AM, Tyson said: It would have to expand to the next digit. Expand
Bud Manz Posted December 6, 2019 Report 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
Blesta Addons Posted December 12, 2019 Author Report Posted December 12, 2019 Hope it could be implemented soon
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now