modification de la description produit
This commit is contained in:
parent
889ee09893
commit
f76f355874
@ -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) )
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user