srn Posted February 25, 2016 Report Posted February 25, 2016 As it stands, payment due reminders are sent IIF the current date matches the exact date: if ($invoice_reminder_datetime == $todays_datetime) This will lead to missing payment reminders if the job was turned off for whatever reason. It should be possible to send the payment reminder if todays date is greater than the datetime, either by keeping track of whether the given notice (notice1, notice2, notice3) has been sent for the given invoice, or as a manually selected task. Quote
srn Posted February 26, 2016 Author Report Posted February 26, 2016 As a temporary workaround, would setting if ($invoice_reminder_datetime == $todays_datetime) to if ($invoice_reminder_datetime < $todays_datetime) for one run do what we want? Quote
Michael Posted February 26, 2016 Report Posted February 26, 2016 Why would you want to send the payment reminders later than you set it on Blesta? Doesn't that defeat the object of setting a date? Quote
Paul Posted February 26, 2016 Report Posted February 26, 2016 No, I believe that would result in duplicate notifications. There is no internal tracking for whether a particular notice has been sent out, so if the cron does not run for an entire day, the notices that should have been sent that day will never be sent. More critical tasks like invoice generation or auto debit, etc will occur when the cron next runs.. but late notices are not in that category. Is it common for your cron to not run for an entire day? Michael 1 Quote
srn Posted February 26, 2016 Author Report Posted February 26, 2016 No, I believe that would result in duplicate notifications. There is no internal tracking for whether a particular notice has been sent out, so if the cron does not run for an entire day, the notices that should have been sent that day will never be sent. More critical tasks like invoice generation or auto debit, etc will occur when the cron next runs.. but late notices are not in that category. Is it common for your cron to not run for an entire day? We had payment reminders off on accident, and now we want to send them. It is important to us because we want to send a certain number of reminders before suspending a service. If only a single reminder of the three is enabled and that kludge is only in place for a single day, it shouldn't result in duplicates, correct? Quote
Blesta Addons Posted February 26, 2016 Report Posted February 26, 2016 this plugin may help http://www.blesta.com/forums/index.php?/topic/2177-parallel-payment-optimizer/ Paul, Michael and PauloV 3 Quote
Paul Posted February 26, 2016 Report Posted February 26, 2016 We had payment reminders off on accident, and now we want to send them. It is important to us because we want to send a certain number of reminders before suspending a service. If only a single reminder of the three is enabled and that kludge is only in place for a single day, it shouldn't result in duplicates, correct? If you make the change and run it once (and then revert the change), it will probably accomplish what you're looking for. this plugin may help http://www.blesta.com/forums/index.php?/topic/2177-parallel-payment-optimizer/ LOL naja7host PauloV, Michael and Blesta Addons 3 Quote
PauloV Posted February 26, 2016 Report Posted February 26, 2016 this plugin may help http://www.blesta.com/forums/index.php?/topic/2177-parallel-payment-optimizer/ Lol its almost April Blesta Addons 1 Quote
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.