modification de la description produit

This commit is contained in:
Regis Houssin 2006-02-12 12:21:30 +00:00
parent 26cd1a50c2
commit 4bbbb34bfc
2 changed files with 3 additions and 3 deletions

View File

@ -306,7 +306,7 @@ if ($_POST['action'] == "addligne" && $user->rights->propale->creer)
{
$propal->insert_product_generic(
$_POST['np_desc'],
$_POST['np_product_desc'],
$_POST['product_desc'],
$_POST['np_price'],
$_POST['np_qty'],
$_POST['np_tva_tx'],
@ -319,7 +319,7 @@ if ($_POST['action'] == "addligne" && $user->rights->propale->creer)
$_POST['qty'],
$_POST['remise'],
$_POST['np_desc'],
$_POST['np_product_desc']);
$_POST['product_desc']);
}
propale_pdf_create($db, $_POST['propalid'], $propal->modelpdf);
}

View File

@ -175,7 +175,7 @@ class Propal
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($prod->product_desc)."','".price2num($remise_percent)."','".price2num($subprice)."')";
$sql .= " (".$this->id.",". $idproduct.",'". $qty."','". $price."','".$txtva."','".addslashes($p_product_desc)."','".price2num($remise_percent)."','".price2num($subprice)."')";
}
else
{