jmginer Posted April 12, 2014 Share Posted April 12, 2014 Hi, I want a dev with knowledge of the SQL WHMCS structure, to create a script. The script may review all users tables and set the ClientGroup automatically with this considerations: - If the ClientGroup is empty, do: * If the user country is "Spain" and in the CustomField1 the first character is a number and the last character is a letter (DNI) -> Set ClientGroup 2 * If the user country is "Spain" and in the CustomField1 the first character is a letter and the last character is a number (NIF) -> Set ClientGroup 3 * If the user country is "Spain" and in the CustomField1 the first character is a letter and the last character is a letter (NIE) -> Set ClientGroup 4 * If the user country is "Spain" and in the CustomField1 is empty (DNI) -> Set ClientGroup 2 * If the user country is NOT "Spain" and the CustomField2 is empty (World) -> Set ClientGroup 6 * If the CustomField2 is not empty (VIES) -> Set ClientGroup 5 - Else (Other) -> Set ClientGroup 7 - If the ClientGroup is NOT empty (set the last time when this script has been run) -> verify the same previous steps and email me if some "user ClientGroup" should be changed. (For example, some user has changed his CustomField1 since the last time when we have run this script, DON'T CHANGE the ClientGroup, e-mail me with the userID, I need do a task by hand) Please, contact me by email: soporte@ginernet.com and let me to know the price and the ETA to provide me the script. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 12, 2014 Share Posted April 12, 2014 please email me at sales [at] whmcms.com 0 Quote Link to comment Share on other sites More sharing options...
jmginer Posted April 19, 2014 Author Share Posted April 19, 2014 Finished by WHMCMS Very nice work! I recommend his services. 0 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.