Cancel invoice for terminated and cancelled services

This hook runs after all the automations and set the invoices to “Cancelled” it the services have been terminated or cancelled. This feature has been long requested to WHMCS but it was never implemented.

All you need to do to install and activate the hook is to upload the file into the /includes/hooks of you WHMCS installation. It will day after the cron runs it will set all the invoices to “Cancelled” if the related product is Terminated or Cancelled.

It will also create an entry in the client log to have a record or the cancelled invoice. The same log will appear also in the System Activity Log.

It’s as easy as that.

whmcstricks cancel invoice for terminated services

2 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *