[ Index ]
 

Code source de vtiger CRM 5.0.2

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

title

Body

[fermer]

/modules/Products/ -> UpdateListPrice.php (source)

   1  <?php
   2  /*********************************************************************************
   3  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   4   * ("License"); You may not use this file except in compliance with the License
   5   * The Original Code is:  vtiger CRM Open Source
   6   * The Initial Developer of the Original Code is vtiger.
   7   * Portions created by vtiger are Copyright (C) vtiger.
   8   * All Rights Reserved.
   9   *
  10   ********************************************************************************/
  11      
  12  global $adb;
  13  global $log;
  14  $log->debug("Going to update the ListPrice in (modules/Products/UpdateListPrice.php).");
  15  $record = $_REQUEST['record'];
  16  $pricebook_id = $_REQUEST['pricebook_id'];
  17  $product_id = $_REQUEST['product_id'];
  18  $listprice = $_REQUEST['list_price'];
  19  $return_action = $_REQUEST['return_action'];
  20  $return_module = $_REQUEST['return_module'];
  21  
  22  $query = "update vtiger_pricebookproductrel set listprice=".$listprice." where pricebookid=".$pricebook_id." and productid=".$product_id;
  23  $adb->query($query); 
  24  header("Location: index.php?module=$return_module&action=".$return_module."Ajax&file=$return_action&ajax=updatelistprice&record=$record");
  25  ?>


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