Jump to content

Resetting Client ID Number etc.,


magicalwonders

Recommended Posts

Hello,

 

I've been carrying out a bit of testing with my new WHMCS installation. This has involved creating and deleting fictitious customer accounts to make sure everything works O.K.

 

Is there anyway to reset Client ID, Order Numbers and Invoice numbers back to zero in order to commence accepting real clients and orders?

 

The only reset info I could find in the manual refers to Invoice numbers, which suggests that I can't really do this.

 

You should only enter this if you want to change the invoice starting number

The number you enter here must be greater than the last generated invoice # which is 4

 

Am I looking at a completely fresh install of WHMCS to start the numbers from zero?

 

Hope someone can advise.

 

Many thanks,

 

Myles

Link to comment
Share on other sites

O.K. I'm about to take the plunge and reset my database as per following instructions:

 

You can empty all the tables that contain clients data by running the following SQL code on your database:

 

TRUNCATE `tblaccounts` ;

TRUNCATE `tblaffiliates` ;

TRUNCATE `tblaffiliatesaccounts` ;

TRUNCATE `tblcancelrequests` ;

TRUNCATE `tblclients` ;

TRUNCATE `tblcustomfields` ;

TRUNCATE `tbldomains` ;

TRUNCATE `tblemails` ;

TRUNCATE `tblhosting` ;

TRUNCATE `tblhostingaddons` ;

TRUNCATE `tblhostingconfigoptions` ;

TRUNCATE `tblinvoiceitems` ;

TRUNCATE `tblinvoices` ;

TRUNCATE `tblorders` ;

TRUNCATE `tblticketlog` ;

TRUNCATE `tblticketnotes` ;

TRUNCATE `tblticketreplies` ;

TRUNCATE `tbltickets` ;

 

I'm a bit shaky on MySQL stuff though and not 100% confident I know what I'm doing.

 

Is it just a matter of loging into PhpMyAdmin, selecting the correct database, then cutting and pasting above Truncates under the SQL tab.

Run SQL query/queries on database webhost1_whmcs
Then clicking "GO"

 

Hope someone can confirm if this is the correct procedure.

 

Many thanks,

 

Myles

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