Jump to content
  • 0

Suspend Services Days After Due


Blesta Addons

Question

How Blesta calcul the day in Suspend Services Days After Due ?

 

i have Suspend Services Days After Due 1  Day .

 

and :

 

service A created in 31-03 ; invoice due date31-03

service B created in 01-04 ; invoice due date 01-04

 

the Service A was suspended in 02-04 00:00 .

Service B stil Active in 02-04 . as i see it would be suspended in 03-04 00:00 .

 

i ask how blesta calcul this ?

 

31 + 1d = 01-04 . and as i have sent cron for suspension run in 00:00 , then the service should be suspended in 01-04 00:00 .

 

is blesta calcul 24 hours or by day calender ? 

 

for me suspend service after 1 day , mean the next day calender don't matter the hours .

 

if i create service in 31-03-2016 23:59 . next day is 01-04 00:00 .

 

another issue also from our experience in v2 .

 

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

today i have looked to this in profound, we have never make attention to this .

 

and yes, the suspended service are always 1 day from the day it should be suspended . from our system , invoice due date 01-04-2016 , the service still active, and i suppose it will be suspended today 03-04-2016 at 00:00 . and that is not ideal for us .

 

client pay 1 year , the service should be suspended at the selected time set in cron settings for the next day .

 

if service due date is 01-04-2016 , so next calendar day is 02-04-2016 . the time setting for running cron is 00:00 , the service should be suspended in 02-04-2016 at 00:00 .

Link to comment
Share on other sites

  • 0

I looked in to my suspended service and it look ok,but I have set 23.55 time,as it suspend once per day service it is logic for me to do at the end of the day.I don't know which time format Blesta use when calculate due dates ..if it calculate hours...than if you set 00.00 most of the service will be suspended nex day since 00.00 is first minute of that day,may be I'm wrong but it make sence...

Example

Service created 01.03 at 00.50 ..due date 01.04 at 00.50,if you set suspend at 00.00 than this service will be suspended 02.04 at 00.00 ,of course this will be the case if blesta calculate hours.

Link to comment
Share on other sites

  • 0

i will not talk more , pictures will talk

 

service renew date 1-4 , invoice due date 1-4 .

 

we are now in 2-4 . these service will be suspended in 3-4 .

 

case 1

 

144307case1.png

 

case 2

 

256981case2.png

 

settings

 

158062settings.png

 

 

i think this is enough .

 

either i have misunderstand the +1day , either the words are not well describe the situation . i will not repeat that v2 has the same setting and it suspend it in 2-4 !!!!

Link to comment
Share on other sites

  • 0

In my opinion they should be suspended on the 2nd of April which is one day after.

Yes that is exactlly what I tought in my post,and + if blesta count hours(i.e if activated 01/03 in 00.50 due date is 01/04 in 00.50) you will loose one more day if you set 00.00 as time service should be suspended, because it is first minute of the day.And at the end service will be suspended 03.04 at 00.00.

I undestand this can cause some issues for some services like domains,licences if you set auto renew,since sistem will renew service 1 or even 2 days before due date while user can simple cancel last day.

Link to comment
Share on other sites

  • 0

is blesta calcul 24 hours or by day calender ? 

 

for me suspend service after 1 day , mean the next day calender don't matter the hours .

 

if i create service in 31-03-2016 23:59 . next day is 01-04 00:00 .

 

Services are suspended if they are more than one day (>24 hours) in the past. So in your example, the 1 minute difference would not qualify it as suspendable even if that minute separated two calendar days. That behavior might be a good feature request, though.

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