Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 3.6.0-b1
-
Component/s: None
-
Labels:None
Description
Someone has requested the ability to automatically cancel provisioned services after X days past due.
The plugin would ask for the following:
- Schedule Cancellation Days After Suspended (Never, 0 Days, 1 Day, 2 Days, ... 60 Days)
- Cancel Services Days After Suspended (Never, 0 Days, 1 Day, 2 Days, ... 60 Days)
The first setting controls when a service receives a scheduled cancellation date. The actual date is calculated based on the second setting, which controls what date (based on the number of days after the service has been suspended) to set the cancellation date. For this reason, the first setting must be <= to the second setting.
The plugin would ONLY SCHEDULE cancellation for services THAT ARE CURRENTLY SUSPENDED. This allows Blesta core to handle the cancellation via existing cron job, and ensures that clients that are not configured for auto suspension are never auto cancelled.
The plugin would simply create a cron task, search for services that meet the criteria (are suspended, and have been suspended for at least the given number of days), and set their cancellation date accordingly.
Issue Links
- is blocked by
-
CORE-1759 Unschedule cancellation when service is unsuspended
- Closed
Depends on
CORE-1759to ensure that the scheduled cancellation is removed if the service was unsuspended it was scheduled for cancellation in advance of the actual cancellation date (i.e. "Cancel Services Days After Suspended" is > 0 Days).