Jump to content

Recommended Posts

Posted

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 .

 

 

 

 

Posted

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?

Posted
  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  

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...