modification de la description produit

This commit is contained in:
Regis Houssin 2006-02-12 14:19:29 +00:00
parent e1cc005fc7
commit 889ee09893
2 changed files with 3 additions and 4 deletions

View File

@ -318,8 +318,7 @@ if ($_POST['action'] == "addligne" && $user->rights->propale->creer)
$_POST['idprod'],
$_POST['qty'],
$_POST['remise'],
$_POST['np_desc'],
$_POST['product_desc']);
$_POST['np_desc']);
}
propale_pdf_create($db, $_POST['propalid'], $propal->modelpdf);
}

View File

@ -132,7 +132,7 @@ class Propal
* \return int >0 si ok, <0 si ko
* \see add_product
*/
function insert_product($idproduct, $qty, $remise_percent=0, $p_desc='', $p_product_desc)
function insert_product($idproduct, $qty, $remise_percent=0, $p_desc='')
{
global $conf;
dolibarr_syslog("propal.class.php::insert_product $idproduct, $qty, $remise_percent, $p_desc");
@ -144,7 +144,7 @@ class Propal
if ($idproduct)
{
$prod = new Product($this->db, $idproduct);
$prod = new Product($this->db, $idproduct);
if ($prod->fetch($idproduct) > 0)
{
$p_product_desc = $prod->description;