<div dir="ltr">Thanks Angelo,<div><br></div><div>I think your idea can be combined with Sukhdev's to have both the blocking and the approval.</div><div><br></div><div>Thanks a lot!</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 16, 2021 at 5:14 PM Angelo Paglialonga <<a href="mailto:info@angelopaglialonga.com">info@angelopaglialonga.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;">Hi Ruben you could use <span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)">Vtiger_Edit_Js.recordPreSave to catch save</span>event , <div>check discount approval with a new group e.g. “can_add_discount" via ajax call </div><div>and block save attempt showing a message via <span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)">Vtiger_Helper_Js.showPnotify.</span></div><div><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)"><br></span></div><div><span style="background-color:rgb(255,255,255)"><font color="#080808" face="JetBrains Mono, monospace">To allow save you<span>’</span>ll need to serialize your form e.g. "</font></span><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)">params"</span><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)"> and submit it via </span><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)">AppConnector.request(params).</span><div><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)">I Hope that helps.</span></div><div><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)">Angelo</span></div><div><br></div><div><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)"><br></span></div><div><span style="color:rgb(8,8,8);font-family:"JetBrains Mono",monospace;background-color:rgb(255,255,255)"><br></span></div><div><br></div><div>
<div>_______________<br><br>Angelo Paglialonga<br>Consulente per soluzioni CRM ad alto ROI.<br><br>Telefono: 3386077866<br>Skype: angelo.paglialonga<br>Web: <a href="https://www.angelopaglialonga.com" target="_blank">https://www.angelopaglialonga.com</a></div><div><br></div><br>
</div>
<div><br><blockquote type="cite"><div>Il giorno 16 giu 2021, alle ore 18:04, Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com" target="_blank">rulotec1@gmail.com</a>> ha scritto:</div><br><div><div dir="ltr">Hi,<div><br></div><div>In my case this comes up again and again. Clients ask for a way to block the modification of prices and discounts in quotes. Additionally, some clients ask for an approval mechanism for discounts.</div><div><br></div><div>Is there a plugin for that? Wouldn't it be a good idea to introduce this feature in a future release?</div><div>Please share your thoughts.</div><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div></div></div>
_______________________________________________<br><a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></div></blockquote></div><br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>