Details
-
Type:
New Feature
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.5.0
-
Fix Version/s: None
-
Component/s: Staff Interface
-
Labels:None
Description
It's sometimes necessary to re-provision a service through the module that's already active in Blesta.
Staff, from the client profile, possibly under Service > Manage > Actions should be able to re-provision a service using the module. If added here, the "Use module" option should be checked and disabled. It may make sense to instead have a new tab called "Commands" or similar to allow module commands to be executed devoid of any action in Blesta including "Create", "Cancel", "Suspend", and "Unsuspend".
Performing the action would attempt to provision the service as if the service were paid pending and the cron ran, or, if the service were added manually by staff with "Use module" selected.
This may produce errors if the service already exists via the module, or if the service is lacking the necessary information to provision. In the latter case, I believe the module would be the cause for any lack of information depending on how it manipulates the data during the original creation of the service. This is beyond our control.
Alternatively it may be desirable to be able to set the service back to "Pending", and allow the cron to attempt to re-provision.
Why can't we just automate the cancel and re-add process? User sees a screen that contains all of the Add service fields prefilled with what we can prefill from the existing service, then they submit, we error check, service is added, previously service is canceled, service dates are updated if necessary.
I can't see a way that modules could support reprovisioning a service that has already been provisioned. The data simply isn't there anymore.