[Vtigercrm-developers] Recreating feature from vtiger 5.4.0 in 7.4.0 for Inventory records?

Rubén A. Estrada Orozco rulotec1 at gmail.com
Sun May 1 22:25:17 GMT 2022


for edit view you could follow a similar strategy as with Detail. But you
would have to somehow track changes to other fields the use might have
changed before changing the quoteid field.
Saludos

Rubén


On Fri, Apr 29, 2022 at 4:17 AM Alan Lord <alanslists at gmail.com> wrote:

> yeah - I know weird isn't it.
>
> Anyway I've got Ajax Saving working in Detail View. I'm listening for
> the PostAjaxSaveEvent in my client code if this field changes, add a
> custom param to the url and use location.assign(url), this then sends
> the user to the Edit View page. In the Edit View class I take a bit of
> what happens when you duplicate so I replace all the data from the new
> Quote (or Sales Order), but do not create a "new" Sales Order (or
> Invoice). It keeps the same number - which is what the customer liked
> about this old feature (I told him it was very unusual to do this but
> that's what he wants).
>
> I've just to got work out how to something similar if the user is in
> Edit View and changes the Quote/Sales Order now.
>
> Cheers
>
> Al
>
>
> On 27/04/2022 18:14, Rubén A. Estrada Orozco wrote:
> > Wow, I didn't know that you could do that in 5.4 either... and to be
> > honest it does sound like a not very useful feature.
> >
> > To get around it, I think the client should just set the SO in a
> > "canceled" status and then create a new one from the quote they want.
> >
> > Having said that, I created an extension to load line items into quotes.
> > Basically, you copy-paste a list of quantities and codes into a field
> > and load the line items using an ajax request and some jquery. What you
> > are looking to achieve sound pretty similar to what this does:
> >
> > line_items_loader.gif
> >
> > You would just need to add an eventlistener to the "Quote" field in SO
> > and call an action that  gets you the quote's information. Then load the
> > line items into the line items table using jquery (this last part is
> > exactly what I do in my extension).
> >
> > Let me know if you have further questions or would like me to cooperate
> > in some way
> >
> > Saludos
> >
> > Rubén
> >
> _______________________________________________
> http://www.vtiger.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20220501/b9da8f8e/attachment.html>


More information about the vtigercrm-developers mailing list