[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
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 13 global $adb; 14 global $log; 15 $return_id = $_REQUEST['return_id']; 16 $record = $_REQUEST['record']; 17 $return_module = $_REQUEST['return_module']; 18 $return_action = $_REQUEST['return_action']; 19 20 if($return_action !='' && $return_module == "PriceBooks" && $return_action == "CallRelatedList") 21 { 22 $log->info("Products :: Deleting Price Book - Delete from PriceBook RelatedList"); 23 $query = "delete from vtiger_pricebookproductrel where pricebookid=".$return_id." and productid=".$record; 24 $adb->query($query); 25 } 26 else 27 { 28 $log->info("Products :: Deleting Price Book"); 29 $query = "delete from vtiger_pricebookproductrel where pricebookid=".$record." and productid=".$return_id; 30 $adb->query($query); 31 } 32 33 header("Location: index.php?module=".$return_module."&action=".$return_module."Ajax&file=$return_action&ajax=delpbprorel&record=".$return_id); 34 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |