<div dir="ltr">Hello Alan,<div><br></div><div>Know your pain, the vtws_revise is broken for all inventory modules. Maybe this will help you: <a href="http://code.vtiger.com/vtiger/vtigercrm/issues/654">http://code.vtiger.com/vtiger/vtigercrm/issues/654</a> there is a commit in there that is supposed to fix it.</div><div><br></div><div>Conrado</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 6, 2017 at 2:27 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 06/11/17 12:48, Alan Lord wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't really have a way to tell which type of save is which (Detail or Edit) from the data passed into the Custom Workflow function.<br>
<br>
I don't believe that I can use the $focus->isLineItemUpdate value when using the Server APIs.<br>
<br>
How am I supposed to achieve this?<br>
</blockquote>
<br></span>
This is a really horrible "hack" (and one you should probably not really be able to do), but it does seem to prevent the duplicate line items problem if, right at the start of my custom workflow function I add:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    if($_REQUEST['action'] == 'Save') {<br>
        $_REQUEST['action'] = 'SaveAjax';<br>
    }<br>
</blockquote>
<br>
:-(<br>
<br>
Al<br>
<br>
______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>