modification de la description produit

This commit is contained in:
Regis Houssin 2006-02-12 14:37:46 +00:00
parent 889ee09893
commit f76f355874

View File

@ -173,16 +173,16 @@ class Propal
$price = $prod->price - $remise;
}
if ($conf->global->CHANGE_PROD_DESC)
/* if ($conf->global->CHANGE_PROD_DESC)
{
$sql = "INSERT INTO ".MAIN_DB_PREFIX."propaldet (fk_propal, fk_product, qty, price, tva_tx, description, remise_percent, subprice) VALUES ";
$sql .= " (".$this->id.",". $idproduct.",'". $qty."','". $price."','".$txtva."','".addslashes($p_product_desc)."','".price2num($remise_percent)."','".price2num($subprice)."')";
}
else
{
{*/
$sql = "INSERT INTO ".MAIN_DB_PREFIX."propaldet (fk_propal, fk_product, qty, price, tva_tx, description, remise_percent, subprice) VALUES ";
$sql .= " (".$this->id.",". $idproduct.",'". $qty."','". $price."','".$txtva."','".addslashes($p_desc?$p_desc:$prod->label)."','".price2num($remise_percent)."','".price2num($subprice)."')";
}
// }
if ($this->db->query($sql) )
{