Cancelled Product? Cancel Invoice!
Category: Action Hook - Type: Free
Last Updated: 14/09/2009 - Supported Versions: V3.8 or Later
Ever had a client cancel a product only to discover that they had put in the cancellation request after you had already invoiced them for the upcoming renewal? Well my action hook will automatically cancel the invoice once the product has had its status changed to cancelled (ie it will only cancel the invoice once the product has actually been cancelled depending on whether the client chooses immediate or at the end of the period)
-My action hook gets executed after the cron job
-It will email you a separate cron report (currently no way to add it to the WHMCS cron report)
-It only sends the cron report to admins that receive system emails.
-It logs itself as having been run in the activity log (like WHMCS cron)
-The invoice that gets cancelled has a note added that it was cancelled by the script so you can tell what has been cancelled by it and what hasnt.
Just upload the file to the includes/hooks folder of your whmcs installation
Thats it your done.
Forum Discussion Thread: http://forum.whmcs.com/showthread.php?t=23119
598 Users found this useful. Click here to vote for this addon
WHMCS is easily extendible through the many Developer Resources we make available, including modules, hooks, addons, API's and templates. So here you will find many third party developed extensions that can enhance and add to what WHMCS can do for you, as well as a number of Official Addons created by ourselves.
Disclaimer: The addons available here are provided by third party developers. WHMCS has not vetted the code in any of the addons listed here, and cannot be held responsible for any problems resulting from the use of them. We are also unable to provide support for any issues with third party code.
Powered by WHMCompleteSolution