[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Invoice/ -> Invoice.js (source)

   1  /*********************************************************************************
   2  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   3   * ("License"); You may not use this file except in compliance with the License
   4   * The Original Code is:  vtiger CRM Open Source
   5   * The Initial Developer of the Original Code is vtiger.
   6   * Portions created by vtiger are Copyright (C) vtiger.
   7   * All Rights Reserved.
   8   *
   9   ********************************************************************************/
  10  
  11  document.write("<script type='text/javascript' src='include/js/Inventory.js'></"+"script>");
  12  
  13  function set_return(product_id, product_name) {
  14          window.opener.document.EditView.parent_name.value = product_name;
  15          window.opener.document.EditView.parent_id.value = product_id;
  16  }
  17  
  18  function set_return_specific(product_id, product_name) {
  19          
  20      //getOpenerObj used for DetailView 
  21      var fldName = getOpenerObj("product_name");
  22          var fldId = getOpenerObj("product_id");
  23          fldName.value = product_name;
  24          fldId.value = product_id;
  25  }
  26  
  27  function set_return_formname_specific(formname,product_id, product_name) {
  28          window.opener.document.EditView1.product_name.value = product_name;
  29          window.opener.document.EditView1.product_id.value = product_id;
  30  }
  31  
  32  
  33  function set_return_inventory(product_id,product_name,unitprice,qtyinstock,curr_row) {
  34          window.opener.document.EditView.elements["txtProduct"+curr_row].value = product_name;
  35          window.opener.document.EditView.elements["hdnProductId"+curr_row].value = product_id;
  36      window.opener.document.EditView.elements["txtListPrice"+curr_row].value = unitprice;
  37      getOpenerObj("unitPrice"+curr_row).innerHTML = unitprice;
  38      getOpenerObj("qtyInStock"+curr_row).innerHTML = qtyinstock;
  39      window.opener.document.EditView.elements["txtQty"+curr_row].focus()
  40  }
  41  function set_return_todo(product_id, product_name) {
  42          window.opener.document.createTodo.task_parent_name.value = product_name;
  43          window.opener.document.createTodo.task_parent_id.value = product_id;
  44  }
  45  


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7