i have a module to write , i need your ideas about how to , maybe it can help me inspire a good solution .
the scenario is the fallowing .
i have resellers for a specific service , the reseller create/renew a service , i don't want to create invoice in any activation or renewal , but i want to create a invoice in 15 and 30 of every month . so at here is clear and that scenario already request in several threads . the difference in my situation , and don't care about saying label of service in the invoice or to see the services list in the services section , i want to generate invoice with two lines , 1st line include just total quantity of registered services, 2nd line with total quantity renewed services, the second request is we prefer to not add services line for every new services that will be shown in the services section , but we need to allow in our module for resellers , when they manage the module from inside to see the list of services and then they can manage every services .
i hope the idea is clear ...
what i have as a solution at the moment , i will create a module + plugin .
the module , will createa table that has the same fields as the services fields (label,activation/renew/suspend/cancel date ...ect) , the module will have option to allow resellers ceate/renew services , no renewed services will be deleted auto after x days from thier expiration date , and manage the services inside the module tab ).
the plugin will just for cron to be execute every 15 & 30 of month to create invoice for renewed and activated new services . and delete no renewed services .
is that a good implementation or there are some thing that i have missed ?
my other custom solution is to add new status in the services status field (open/closed/suspended/canceled/my_custom_status) , here the services will not listed as i think in the services list , and i will let my plugin to generate invoice for that services .
adding new status can impact the function for other services or blesta work?
Question
Blesta Addons
Hello all
i have a module to write , i need your ideas about how to , maybe it can help me inspire a good solution .
the scenario is the fallowing .
i have resellers for a specific service , the reseller create/renew a service , i don't want to create invoice in any activation or renewal , but i want to create a invoice in 15 and 30 of every month . so at here is clear and that scenario already request in several threads . the difference in my situation , and don't care about saying label of service in the invoice or to see the services list in the services section , i want to generate invoice with two lines , 1st line include just total quantity of registered services, 2nd line with total quantity renewed services, the second request is we prefer to not add services line for every new services that will be shown in the services section , but we need to allow in our module for resellers , when they manage the module from inside to see the list of services and then they can manage every services .
i hope the idea is clear ...
what i have as a solution at the moment , i will create a module + plugin .
the module , will createa table that has the same fields as the services fields (label,activation/renew/suspend/cancel date ...ect) , the module will have option to allow resellers ceate/renew services , no renewed services will be deleted auto after x days from thier expiration date , and manage the services inside the module tab ).
the plugin will just for cron to be execute every 15 & 30 of month to create invoice for renewed and activated new services . and delete no renewed services .
is that a good implementation or there are some thing that i have missed ?
my other custom solution is to add new status in the services status field (open/closed/suspended/canceled/my_custom_status) , here the services will not listed as i think in the services list , and i will let my plugin to generate invoice for that services .
adding new status can impact the function for other services or blesta work?
4 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.