Blesta Addons Posted March 27, 2016 Report Posted March 27, 2016 we have Suspend Services Days After Due set to 1 day . in cron , Suspend Services set start time to 00:00 . invoice related due date is Mar 27, 2016 . normally in Mar 28, 2016 at 00:00 the service should be suspended , that has not happen . Task Last Ran: Mar 28, 2016 12:00:03 AM what is wrong here ? where i should look at it ? Quote
0 blesbill Posted March 28, 2016 Report Posted March 28, 2016 Hi, I believe that the "Suspend Services Days After Due" set to 1 Day would effectively mean 1 day grace period to pay the invoice. In that case: Invoice due date : Mar 27, 2016 Grace period 1 day : Mar 28, 2016 Suspend Services Time is at 00:00 So, on the 29th 00:00, it should suspend the service. Thanks. Michael 1 Quote
0 Blesta Addons Posted March 28, 2016 Author Report Posted March 28, 2016 Thanks for the answer . 27th + 1 day grace period = 28th . in blesta v2.5 was working this way . Quote
0 Tyson Posted March 28, 2016 Report Posted March 28, 2016 You didn't mention any details on a service that should be suspended. What is it's due date? Is there an active unpaid invoice that the service belongs to? A pending service must be at least 24 hours old to be suspendable if you have the setting Suspend Services Days After Due set to "1 day". So if the cron runs on March 28, 2016 at 00:00 (midnight), then only services on or before March 27, 2016 00:00 could be suspended. If the service is due on March 27, 2016 00:01, it would not be suspended at that time. Michael 1 Quote
0 Blesta Addons Posted March 28, 2016 Author Report Posted March 28, 2016 we have found no service has been suspended . i give you two example 1 - service has expiration date in 26-3-2016 . normally it should be suspended 27-3-2016 if the related invoice was not paid . 2 - service has a expiration date lat mounth , but we change the due date invoice to +1mounth more, so if the client pay the invoice before the due date the service remain active , if related invoice was not paid before the due date , the service should be suspended in the due date invoice . note all invoice was generated auto . the new system has not suspended any service , and no inoice was generated . we have run the cron in v2.5 manually and we found the mentioned services was suspended , and other invoice has been generated . the cron in v3 is running every 5 minute . should i look to somwhere to check if something is needed or missed . Quote
0 Blesta Addons Posted March 29, 2016 Author Report Posted March 29, 2016 in database i have found the the all the invoice lines has a null value in service_id . the importer can't determinate the service id ? Quote
0 Blesta Addons Posted March 29, 2016 Author Report Posted March 29, 2016 changed the the importer file blesta2_5.php to make the invoices & transaction imported after the services import "importServices", // works "importInvoices", // works "importTransactions", // works and the invoices lines are well identified the services corresponding . Quote
Question
Blesta Addons
we have Suspend Services Days After Due set to 1 day .
in cron , Suspend Services set start time to 00:00 .
invoice related due date is Mar 27, 2016 .
normally in Mar 28, 2016 at 00:00 the service should be suspended , that has not happen .
Task Last Ran: Mar 28, 2016 12:00:03 AM
what is wrong here ? where i should look at it ?
6 answers to this question
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.