<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hy,<br>
    <br>
    I have implemented such an hack into vtiger 5.2, 5.3, 5.4 and Yes:
    It was very hard to detect, that all products are removed, if i
    doesn't check and test this before release. ;)<br>
    I think, i had wrote about this topic in my blog stefanwarnat.de but
    couldn't find the post.<br>
    <br>
    I will publish the way tomorrow on vtiger.stefanwarnat.de. It is
    only a little hack into the source and shouldn't be a big problem.<br>
    <br>
    bye,<br>
    Stefan<br>
    <br>
    <br>
    Am 09.08.2012 15:58, schrieb Adam Heinz:
    <blockquote
cite="mid:CAKBdvM9h66mTOn35cXCTLMbs2A=H_i2JW36uKP9uFKpvFqZ9nQ@mail.gmail.com"
      type="cite">
      <pre wrap="">On Thu, Aug 9, 2012 at 1:16 AM, ram prasad <a class="moz-txt-link-rfc2396E" href="mailto:ramtrg@gmail.com">&lt;ramtrg@gmail.com&gt;</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I am creating Sales Order using Web service using vtwsclib-1.4(Java script).
I am able to Create Sales from my client Application and it stored in
vtiger_salesorder   table. But i am not able to pass line items(products)
through web service. I have seen products(lineitems) stored in
vtiger_inventoryproductrel Table.
Is it possible to add and receive sales order products through webservices?
</pre>
      </blockquote>
      <pre wrap="">
This is a known problem with Quotes, SalesOrders and Invoices.

<a class="moz-txt-link-freetext" href="https://forums.vtiger.com/viewtopic.php?t=34200">https://forums.vtiger.com/viewtopic.php?t=34200</a>

The function that normally does that work is saveInventoryProductDetails.

<a class="moz-txt-link-freetext" href="http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.4.0/include/utils/InventoryUtils.php#L512">http://trac.vtiger.com/cgi-bin/trac.cgi/browser/vtigercrm/branches/5.4.0/include/utils/InventoryUtils.php#L512</a>

It would be a bit of a hack, but you might be able to trick the web
service into doing what you want if you sent the items as part of the
request (not the json-encoded entity).  If you go down that road, be
careful that you don't erase your items the first time you make a
change to the SalesOrder without changing the items.
_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a>
</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <small><small>Freelancer@Webdevelopment</small></small><br>
      <br>
      <small><small><b>Web</b>: <a class="moz-txt-link-freetext"
            href="http://www.stefanwarnat.de">http://www.stefanwarnat.de</a></small></small><br>
      <small><small><b>Xing</b>: <a class="moz-txt-link-abbreviated"
            href="https://www.xing.com/profile/Stefan_Warnat2">https://www.xing.com/profile/Stefan_Warnat2</a></small></small><br>
      <small><small><b>Mail</b>: <a class="moz-txt-link-abbreviated"
            href="mailto:ich@stefanwarnat.de">ich@stefanwarnat.de</a></small></small><br>
      <small><small><b><br>
            Telefon</b>: 0162 / 2548568 </small></small><br>
      <small><small>(Werktags 10 Uhr - 18 Uhr)</small></small><br>
    </div>
  </body>
</html>