Jump to content
  • 0

Renew Services Issue


AlexF

Question

Hi everyone.

We have started to use the Blesta as our main billing solutions. Everything is working, but one issue really bothers us. 

1) We setup a service on monthly basis, a renew date goes on the same day next month OK

2) We setup invoice generation on 15 days before the renew date OK

3) The invoices generate as scheduled OK

4) After invoices are generated the renew date moved up to one more month on the same day OK

BUT we don't get the event "renew service" cause the renew date has been moved, because of it we can not update our switch with new value which is waiting for the event "renew service" Please help us to solve it.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Moved to support as this is not a bug.

 

The "renewService" module method is only invoked after the invoice for a service that renewed has been paid. It would probably not be a good idea to trigger the "renewService" module method that would then perform some action on the remote server unless the invoice for the service that renewed was actually paid.

Link to comment
Share on other sites

  • 0

I haven't been able to duplicate. This task is run by the "processRenewingServices" cron task. You can see when this task ran using the following query:

 

SELECT `log_cron`.* FROM `cron_tasks`
INNER JOIN `cron_task_runs` ON `cron_tasks`.`id`=`cron_task_runs`.`task_id`
INNER JOIN `log_cron` ON `log_cron`.`run_id`=`cron_task_runs`.`id`
WHERE `key`='process_renewing_services' AND `cron_task_runs`.`company_id`='1'
ORDER BY `log_cron`.`start_date` DESC
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
Answer this question...

×   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...