16 lines
907 B
PHP
Executable File
16 lines
907 B
PHP
Executable File
<?
|
|
$sugarEntry=true;
|
|
global $db;
|
|
function priceToDb($v){
|
|
$v=str_replace(".","",$v);
|
|
$v=str_replace(",",".",$v);
|
|
return floatval($v);
|
|
}
|
|
$GLOBALS['db']->query("update ecmdevices_ecmproducts set recipient_code='".$_REQUEST['recipient_code']."',remarks_pl='".$_REQUEST['remarks_pl']."',remarks_en='".$_REQUEST['remarks_en']."',remarks_de='".$_REQUEST['remarks_de']."',price='".priceToDb($_REQUEST['price'])."' where ecmdevice_id='".$_REQUEST['pricebook_id']."' and ecmproduct_id='".$_REQUEST['record']."'");
|
|
$_REQUEST['customview_id']=$_COOKIE['customview_id'];
|
|
$_GET['customview_id']=$_COOKIE['customview_id'];
|
|
$r=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select id from ecmdevices_ecmproducts where ecmproduct_id='".$_REQUEST['record']."' and ecmdevice_id='".$_REQUEST['pricebook_id']."'"));
|
|
$_SESSION['EcmDevices_high'][$r['id']]=true;
|
|
include("modules/EcmDevices/ListViewProductsAjax.php");
|
|
?>
|