Differences
This shows you the differences between two versions of the page.
— |
whmcs-continuous-invoicing-active-services-only [2020-03-13 17:43:36] (current) shaun.reitan created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== WHMCS Continuous Invoice Generation for active services only ====== | ||
+ | WHMCS has a configuration option named ' | ||
+ | |||
+ | We found ourselves wanting ' | ||
+ | |||
+ | The first step is to login to the admin area of WHMCS. Click ' | ||
+ | |||
+ | Next, we need to add a few configuration lines to the configuration.php file. Open your configuration.php file and add the following lines before the closing php tag. | ||
+ | |||
+ | ``` | ||
+ | global $continuous_invoicing_active_only; | ||
+ | $continuous_invoicing_active_only = true; | ||
+ | ``` | ||
+ | |||
+ | Your configuration.php file should now look something like this | ||
+ | |||
+ | ``` | ||
+ | <?php | ||
+ | $license = " | ||
+ | $db_host = " | ||
+ | $db_username = " | ||
+ | $db_password = " | ||
+ | $db_name = " | ||
+ | $cc_encryption_hash = " | ||
+ | $templates_compiledir = " | ||
+ | |||
+ | global $continuous_invoicing_active_only; | ||
+ | $continuous_invoicing_active_only = true; | ||
+ | |||
+ | ?> | ||
+ | ``` | ||
+ | |||
+ | Congratulations! Your WHMCS installation will now only continue to generate invoices for services that are Active! |