Jump to content

Can anyone help with a couple of simple mysql queries?


Recommended Posts

Hi I need to run two queries....


1. Set all domains not to auto invoice.


2. For all open invoices that do not have tax applied - apply tax.


If anyone can help me I'd really appreciate it, I'm in a bit of a bind.

Link to comment
Share on other sites



Sorry, I will try to explain again...


The domain auto invoice issue is resolved.


The tax issue is related to a couple of products that were accidentally created with the option to apply tax unchecked, then the customers were imported into WHMCS and the cron job processed. When the cron ran, the renewal invoices for these products were generated without tax. I need to update these invoices so that tax is applied.


So these are unpaid invoices where no tax has been applied. I need to add tax, where no tax has been added previously. There are other unpaid invoices for domains and other products that do have tax added - so I don't want to add tax to all unpaid invoices.

Edited by Chris74
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.

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