Cron jobs
Two JoomInvoice tasks run on a schedule: creating recurring invoices and sending payment reminders. They do not run by themselves. Your server, or an online cron service, must call their address.
Change the cron job key first
Both addresses contain the Cron Job key from the General tab of the Options. Every new install has the same default key, zz@zt78e, so anyone who knows it can start these tasks on your site.
- Go to Configuration > General.
- Replace Cron Job key with a long random value made of letters and digits.
- Save.
Recurring invoices
Address:
https://example.com/index.php?option=com_joominvoice&task=generateRecurring&cronjob_key=YOUR_KEY
Call it once a day. The answer is a line such as New generated invoices: 2. A wrong key answers Error: Invalid Cron Job Key.
Example crontab line, every day at 06:00:
0 6 * * * wget -q -O /dev/null "https://example.com/index.php?option=com_joominvoice&task=generateRecurring&cronjob_key=YOUR_KEY"
You can also click Generate recurring in the invoice list. See Recurring invoices.
Payment reminders
Address, also shown in Configuration > Reminders > Cron Job Url:
https://example.com/index.php?option=com_joominvoice&task=sendReminders&cronjobKey=YOUR_KEY
Do not schedule this one in 6.5.2. It can send one client's invoice link to other clients. See Email notifications.
Tips
- Use the exact site address, with
httpsand with or withoutwwwas your site uses it. - If your host has no cron, an online cron service can call the address.
- Joomla's System > Scheduled Tasks can call the address too, with a task of the type GET Request. Its schedule only runs when the site gets visits, unless you set up Joomla's web cron.