Blesta Addons Posted September 20, 2016 Report Posted September 20, 2016 Hello the function createFromServices() is wonderful , but i need a small adjustment , this function generate a invoice for extanding the period for 1 (quantity) term . it would be perfect to add a new var to set quantity . let say i have a package term 1 year, i want to genereta invoice for 3 years , the only solution is that i need to run the fucntion 3 times and generate 3 invocies . i know this is related to getLinesForServices() ($service->qty) , and adding such function can open the door to some locked task like allow clients/admins to generate a invoice for renewal before the renew date . Michael 1 Quote
Tyson Posted September 20, 2016 Report Posted September 20, 2016 I don't think a quantity adjustment is suitable in createFromServices. The invoicing would become much more complex if quantity had to be considered there. It is not meant to consider input variables since it is dependent on the service information. Eventually, this functionality will be removed for a better solution yet to be created. 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.