Jump to content

Allow Payment Reminders To Be Sent Later Than Scheduled Date


srn

Recommended Posts

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

 

 

LOL naja7host  :blesta:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...