title: Unable to add product details while creating new quote
body: <p><em>I am developing an android app to create a new Quote in vTiger(ver 5.4) CRM server.</em></p>
  
  <p><strong>I was able to generate the new quote but the product_id and quantity that I sent for addition in quote details were not added in it. The other details are being shown in the new quote except the list of products, their quantities and pricing.</strong></p>
  
  <p><em>I have also studied the <a href="https://wiki.vtiger.com/index.php/Webservices_tutorials" rel="nofollow noreferrer">vTiger webservices tutorial</a> but it was not helpful in this case.</em></p>
  
  <h2><strong>I found an <a href="https://stackoverflow.com/a/14739354/3837191">accepted answer</a> of similar <a href="https://stackoverflow.com/questions/14523882/importing-quotes-into-vtiger-crm-with-web-services">question</a> but it is in <code>php</code> not in <code>Android/JAVA</code>.</strong></h2>
  
  <p><em>This is how I am sending the details required to create a new quote in vTiger server.:-</em></p>
  
  <pre><code>            try {
                  objectJson.put("subject", subject);
                  objectJson.put("account_id", accountId);
                  objectJson.put("bill_street", address); 
                  objectJson.put("assigned_user_id", "19x1");
                  objectJson.put("conversion_rate", "1.000"); 
                  objectJson.put("currency_id", "21x1");  
                  objectJson.put("hdnTaxType", "group");          
                  objectJson.put("productid", productId); 
                  objectJson.put("quantity", quantity);
              } 
              catch (JSONException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
  
              String data = null;
  
              try {               
                  data = URLEncoder.encode("sessionName", "UTF-8")
                          + "=" + URLEncoder.encode(sessionId, "UTF-8");
                  data += "&amp;" + URLEncoder.encode("element", "UTF-8") + "="
                          + URLEncoder.encode(objectJson.toString(), "ISO-8859-1");
                  data += "&amp;" + URLEncoder.encode("elementType", "UTF-8") + "="
                          + URLEncoder.encode(moduleName, "UTF-8");  //moduleName='Quotes'
              } catch (UnsupportedEncodingException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              } 
  
               String text = "";
               BufferedReader reader=null;
  
               // Send data
                  try
                  {                 
                      // Defined URL  where to send data
                      URL url = new URL("http://vtiger_url/webservice.php?operation=create");
  
                      // Send POST data request
                      URLConnection conn = url.openConnection();
                      conn.setDoOutput(true);
                      OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
                      wr.write( data );
                      wr.flush();   
                   } 
                      catch(Exception ex)
                          {
  
                          }
  </code></pre>
  
  <p><strong>The above code helps me to generate the quote without product details.</strong></p>
  
  <p><em>After studying the above mentioned <a href="https://stackoverflow.com/a/14739354/3837191"><code>php</code> answer</a>, I changed the URL that I was using in my code to this:- <strong><code>http://vtiger_url/webservice.php?total=23000&amp;operation=create</code></strong>. This helped me to add the total amount to the newly created quote but I wasn't successful to add rest of the details using this method.</em></p>