Jump to content

Changing ownership of old invoices


beet

Recommended Posts

I have a client who signed up for additional services yesterday but accidentally did so by creating another account for himself. I moved the domain and products over to the original account (thanks to the forum I was able to figure out about the secret grey "Move" link!) but an invoice was generated and paid under the new account before I realized what had happened.

 

So here's the problem: I want to delete the accidentally created account but keep the invoice payment history by moving it over to the "real" account. I don't mind going into mysql and manually changing the owner id (or whatever) since it's only one invoice but I was wondering if there was a way to do it in the WHM interface.

Link to comment
Share on other sites

About all you can do is get the id from both customer accounts, and run these queries directly on the database, replacing [realuserid] with the original account's id, and [baduserid] with the new id the customer accidentally created:

 

update tblinvoices set userid = [realuserid] where userid = [baduserid]

 

update tblinvoiceitems set userid = [realuserid] where userid = [baduserid]

 

update tblaccounts set userid = [realuserid] where userid = [baduserid]

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