Jump to content

Question

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

4 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

That's exactly what we need, after invoice is paid we are waiting for the event "renew service" if the event occurs our module updates value on 3rd party server, but the event does not occur. Neither when invoice was generated nor when it was paid.

  • 0
Posted

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

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