Blesta Addons Posted April 7, 2016 Report Posted April 7, 2016 it would be usefull is blesta add to the days list in Invoice and Charge Options another option "0 day" . that way we can select the suspension set to "0 day" , the service will be suspended the same day in expiration , add to not wait 24Hours to make the suspension , the same for the other list . that way we can ignore the 24 hour difference between to calender days . i remember that another user has request a negative value for this list "- 2 days". Quote
activa Posted April 8, 2016 Report Posted April 8, 2016 1 big + for this . have you tried to edit it manually and test it ? Quote
Tyson Posted April 8, 2016 Report Posted April 8, 2016 Do you want to suspend a service before the invoice for it is due? I believe the setting that controls this behavior is called "Suspend Services Days After Due", meaning suspension should occur after the invoice is due and not before. In what cases would you find suspending the service before the invoice is due useful? If the problem you're having is with the way suspended services are not based on calendar day, but a 24 hour difference, then I think a possible resolution here is to update it to respect the calendar day instead. Quote
Blesta Addons Posted April 8, 2016 Author Report Posted April 8, 2016 Hello tyson ... if i set it to 0 day , i think logically it will be suspended in the same day of overdue invoice ? what i need is the service suspend in the next calendar day of invoice due , and not after 24 hours . i need a urgent fix because this is trivial for some services we have . what is the best solution for us ? Quote
Blesta Addons Posted April 8, 2016 Author Report Posted April 8, 2016 If the problem you're having is with the way suspended services are not based on calendar day, but a 24 hour difference, then I think a possible resolution here is to update it to respect the calendar day instead. how ? Quote
Tyson Posted April 8, 2016 Report Posted April 8, 2016 An invoice that is due today, at midnight, means (in Blesta) that it is due any time today. However, if you set the Suspend Services Days After Due setting to a value of '0', it will suspend services whose invoices are due (earlier) today. I don't think that is what you want. how ? You would have to update Services::getAllPendingSuspension to fetch invoices that are due before the suspension date at the end of the day. Quote
Blesta Addons Posted April 8, 2016 Author Report Posted April 8, 2016 An invoice that is due today, at midnight, means (in Blesta) that it is due any time today. However, if you set the Suspend Services Days After Due setting to a value of '0', it will suspend services whose invoices are due (earlier) today. I don't think that is what you want. for me i can make the suspend time at 23:55 at that can make me happy at least until the blesta do something in the core . You would have to update Services::getAllPendingSuspension to fetch invoices that are due before the suspension date at the end of the day. hacking core file is not my way . but i prefer a solution that is integrated in the system , i can wait it in v4 . Quote
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.