Jump to content

Need a WHMCS dev for a custom script


Recommended Posts

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated