Jump to content

Recommended Posts

Posted

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 .

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...