I am looking for a way to limit invoices to sending during weekdays. In older versions of Blesta I added a line or two of php to cron.php to check if the day of the week was Saturday or Sunday and if it was to simply skip creating the invoice.
if ((date('N') >= 6) .....
Since I upgraded a while back my code no longer works. I added it where I thought it should be, but it hasn't kept the system from sending invoices. So I am either adding it in the wrong spot, or Blesta no longer uses the cron.php file to determine if an invoice is sent. Any ideas how I could accomplish this?
Question
Jason
I am looking for a way to limit invoices to sending during weekdays. In older versions of Blesta I added a line or two of php to cron.php to check if the day of the week was Saturday or Sunday and if it was to simply skip creating the invoice.
if ((date('N') >= 6) .....
Since I upgraded a while back my code no longer works. I added it where I thought it should be, but it hasn't kept the system from sending invoices. So I am either adding it in the wrong spot, or Blesta no longer uses the cron.php file to determine if an invoice is sent. Any ideas how I could accomplish this?
Thanks,
--Jason
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.