Bertie Posted June 26, 2018 Share Posted June 26, 2018 Hi, Is there a way to stop invoices being generated that are £0? It seems to happen when a client has a hosting package that includes a free domain name renewal. Then it seems to raise invoices for that domain name renewal but for £0. This then gets sent to the customer and can cause confusion and a bit annoying for them. So is there anything that we can do to stop them from generating? I have seen in the past some people have used actionhooks of some sort but I'm not sure if they are still valid for the latest version of WHMCS. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 26, 2018 Share Posted June 26, 2018 4 hours ago, Bertie said: Is there a way to stop invoices being generated that are £0? I think it's the invoice creation that triggers the automation, so if you stop the former, you stop the latter too. 4 hours ago, Bertie said: It seems to happen when a client has a hosting package that includes a free domain name renewal. Then it seems to raise invoices for that domain name renewal but for £0. This then gets sent to the customer and can cause confusion and a bit annoying for them. you can certainly stop the emails going to the client - I think that's what the hooks that you're thinking of do. 4 hours ago, Bertie said: So is there anything that we can do to stop them from generating? I have seen in the past some people have used actionhooks of some sort but I'm not sure if they are still valid for the latest version of WHMCS. are you thinking of this one... http://www.whmcsjet.com/how-to-disable-invoice-generation-for-0-00-invoices/ ultimately, it would have to be updated in the future (which wouldn't be difficult), but it should still work as it is. 0 Quote Link to comment Share on other sites More sharing options...
Bertie Posted June 27, 2018 Author Share Posted June 27, 2018 18 hours ago, brian! said: I think it's the invoice creation that triggers the automation, so if you stop the former, you stop the latter too. you can certainly stop the emails going to the client - I think that's what the hooks that you're thinking of do. are you thinking of this one... http://www.whmcsjet.com/how-to-disable-invoice-generation-for-0-00-invoices/ ultimately, it would have to be updated in the future (which wouldn't be difficult), but it should still work as it is. Yeah it's mainly the emails of the £0 invoices being sent - Would love to get those stopped if possible? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 27, 2018 Share Posted June 27, 2018 1 hour ago, Bertie said: Would love to get those stopped if possible? did you try the hook in the above post? last time I tried it was on v7.2.3 I think , and i'm sure it worked fine. 0 Quote Link to comment Share on other sites More sharing options...
Bertie Posted June 28, 2018 Author Share Posted June 28, 2018 21 hours ago, brian! said: did you try the hook in the above post? last time I tried it was on v7.2.3 I think , and i'm sure it worked fine. I did but I've just re-looked at the code and may have missed the <?php tag so that could be why it wasn't actually working. Will keep an eye on £0 invoices and see if it still works or not. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 28, 2018 Share Posted June 28, 2018 1 hour ago, Bertie said: Will keep an eye on £0 invoices and see if it still works or not. if you have a test account (with existing invoices) within your WHMCS installation, you could always alter the hook total value from 0.00 to whatever the total of the invoice is, save it, send the invoice again from the admin area and see if it prevents the email being sent. 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.