Basheer Posted February 27, 2018 Share Posted February 27, 2018 Hi, How can prevent invoice creation on a particular point, like if product is canceled etc. And i can't find any hook point for before invoice creation/ pre invoice creation . Link to comment Share on other sites More sharing options...
twhiting9275 Posted February 27, 2018 Share Posted February 27, 2018 If the product is cancelled, the invoice won't be created, that's not a hook, that's just how the product works. If you'll be a bit more specific as to what exactly you're trying to do, and why you're trying to prevent it from being created, one might be able to be more help here. Link to comment Share on other sites More sharing options...
Basheer Posted February 27, 2018 Author Share Posted February 27, 2018 sorry , not cancelled ,if suspended Link to comment Share on other sites More sharing options...
twhiting9275 Posted February 27, 2018 Share Posted February 27, 2018 Suspended services may actually have invoices generated as well. IF you have ' Continuous Invoice Generation ' turned on ( whmcs admin -> settings -> invoices ) Some choose to continue to generate invoices, because technically (from a hosting standpoint), you're still serving the customer . DNS is still pointing to you, you still hold their data, and backups are still provided. Soooo, in some cases you want this to be done. Now, if you don't want the invoice generated when clients are suspended, then untick ' Continuous Invoice Generation '. Of course, this won't prevent invoice generation if the client is suspended due to TOS reasons (say spam, abuse, malware, blah blah blah) . Not even sure there's a way to do that, technically speaking, since, again, you still do host the account Link to comment Share on other sites More sharing options...
Basheer Posted February 28, 2018 Author Share Posted February 28, 2018 Quote Now, if you don't want the invoice generated when clients are suspended, then untick ' Continuous Invoice Generation '. If i disable this option , i think system will not create any invoices if there is any unpaid invoice. But we are not happy with that . We need only block the invoice creation if product is suspended. Link to comment Share on other sites More sharing options...
brian! Posted February 28, 2018 Share Posted February 28, 2018 long requested feature... 5 years https://requests.whmcs.com/topic/disable-auto-invoice-generation-after-suspension Link to comment Share on other sites More sharing options...
Basheer Posted March 1, 2018 Author Share Posted March 1, 2018 ... Waiting Link to comment Share on other sites More sharing options...
Recommended Posts