<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">try to add <br>
    </font>
    <div style="background-color:#1e1f22;color:#bcbec4">
      <pre
      style="font-family:'JetBrains Mono',monospace;font-size:9,8pt;"><span
      style="color:#7a7e85;">//Inventory line items getting wiped out
</span><span style="color:#9876aa;">$_REQUEST</span>[<span
      style="color:#6aab73;">'ajxaction'</span>] = <span
      style="color:#6aab73;">'DETAILVIEW'</span>;</pre>
    </div>
    <font face="monospace">before <br>
    </font>$recordModel->save();<br>
    <pre class="moz-signature" cols="72">S pozdravom / Best regards / Mit freundlichen Grüßen
Ing. Matus SOPKO
IT-Solutions4You s.r.o.
Tel. +421/ 51/ 7732370
email: <a class="moz-txt-link-abbreviated" href="mailto:sopko@its4you.sk">sopko@its4you.sk</a>
<a class="moz-txt-link-freetext" href="http://www.its4you.sk">http://www.its4you.sk</a></pre>
    <br>
    <br>
    <div class="moz-cite-prefix">On 23. 9. 2024 5:26, Alexander Allen
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFpJncSh6H8eexwybBVZuyu=11EOhNuyNNF3XMkx1Uznue7T-g@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hello, I want to update a quotestage from a quote but when
          I do it via webservice all the products in the quote
          disappear. I tried also to get all the products via webservice
          but I only get the last product.   Can you give me an idea how
          can I achieve this?</div>
        <div><br>
        </div>
        <div>My code looks like this:</div>
        <div><br>
        </div>
        <div><?php<br>
        </div>
        <div>include_once 'include/Webservices/Utils.php';<br>
          require_once('includes/main/WebUI.php');<br>
          include_once 'include/Webservices/ModuleTypes.php';<br>
          include_once 'include/Webservices/Query.php';<br>
          <br>
          $current_user = CRMEntity::getInstance('Users');<br>
          $current_user->retrieveCurrentUserInfoFromFile(1);<br>
          include_once 'include/Webservices/Create.php';</div>
        <div> $linkModule ="Quotes";<br>
          $recordModel=
          Vtiger_Record_Model::getInstanceById($newId,$linkModule);<br>
          $recordModel->set('mode','edit');<br>
          $recordModel->set('quotestage', 'SENT'); <br>
        </div>
        <div>$recordModel->save();</div>
        <div><br>
        </div>
        <div>?><br>
        </div>
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre wrap="" class="moz-quote-pre">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
    </blockquote>
    <br>
  </body>
</html>