From 5f5b19bcfdfb22a2d73f826b61ffd94429eb270a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sun, 12 Feb 2006 14:44:14 +0000 Subject: [PATCH] bugfix --- htdocs/propal.class.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 968fc56b599..816ed8cf5da 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -219,7 +219,7 @@ class Propal * \return int >0 si ok, <0 si ko * \see add_product */ - function insert_product_generic($p_desc, $p_product_desc, $p_price, $p_qty, $p_tva_tx, $remise_percent=0) + function insert_product_generic($p_desc, $p_price, $p_qty, $p_tva_tx, $remise_percent=0) { global $conf; dolibarr_syslog("propal.class.php::insert_product_generic $p_desc, $p_price, $p_qty, $p_tva_tx, $remise_percent"); @@ -240,16 +240,8 @@ class Propal $price = $p_price - $remise; } - /* 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.", 0,'". $p_qty."','". price2num($price)."','".$p_tva_tx."','".addslashes($p_product_desc)."','$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.", 0,'". $p_qty."','". price2num($price)."','".$p_tva_tx."','".addslashes($p_desc)."','$remise_percent', '".price2num($subprice)."') ; "; - // } if ($this->db->query($sql) ) {