Jump to content
  • 0

How to randomize client ID?


Question

Posted

Client Id is used for a few things. It's also the account number. All businesses I deal with randomize the account number because its also used as authentication for them. 

How can i randomize client ID in blesta? 

3 answers to this question

Recommended Posts

  • 0
Posted

There's no built in way to randomize them. However, you could prepend and/or append other information, or have them increment every X. For example, the following would be possible:

ABC-1500
ABC-1505
ABC-1510

(Starts with ABC, and also increments by 5 at a time)

This cannot be changed in the UI, but can be changed in the database. Look for company_settings.clients_format and company_settings.clients_increment where company_settings.company_id=1 (Or your company ID if multiple companies)

company_settings.clients_format must contain the {num} tag in there someplace.

So, not random, but you may wish to increment by more than 1. clients_increment contains the increment value (default 1)

  • 0
Posted

Thanks Paul. Are there any other variables that can be used in that db table? I.e : {year} {month} or just {num}? I guess it's not that important, but good to know if i want a little bit of structure. 

  • 0
Posted
  On 10/19/2016 at 7:45 PM, AnthonyL said:

Thanks Paul. Are there any other variables that can be used in that db table? I.e : {year} {month} or just {num}? I guess it's not that important, but good to know if i want a little bit of structure. 

Expand  

I don't think so, but I could be wrong. You could try the same vars that are available to invoices like {year} {month} {day}, it might work, not sure as it's not documented.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...