From 7b69c5a42f379beb3b98ccb1c782c8c636f7fa2a Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 5 Oct 2006 09:09:23 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20la=20description=20n'=E9tait=20pas=20r?= =?UTF-8?q?=E9cup=E9r=E9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/fournisseur.commande.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/fourn/fournisseur.commande.class.php b/htdocs/fourn/fournisseur.commande.class.php index 2f2c7943870..2264ed95994 100644 --- a/htdocs/fourn/fournisseur.commande.class.php +++ b/htdocs/fourn/fournisseur.commande.class.php @@ -626,7 +626,8 @@ class CommandeFournisseur extends Commande $result=$prod->get_buyprice($this->fourn_id,$qty); if ($result) { - $desc = $prod->libelle; + $label = $prod->libelle; + $desc = $prod->description; $txtva = $prod->tva_tx; $pu = $prod->fourn_pu; $ref = $prod->ref; @@ -651,7 +652,7 @@ class CommandeFournisseur extends Commande } $sql = "INSERT INTO ".MAIN_DB_PREFIX."commande_fournisseurdet (fk_commande,label,description,fk_product, price, qty, tva_tx, remise_percent, subprice, remise, ref)"; - $sql .= " VALUES ($this->id, '" . addslashes($desc) . "','" . addslashes($desc) . "',".$fk_product.",".price2num($price).", '$qty', $txtva, $remise_percent,'".price2num($subprice)."','".price2num($remise)."','".$ref."') ;"; + $sql .= " VALUES ($this->id, '" . addslashes($label) . "','" . addslashes($desc) . "',".$fk_product.",".price2num($price).", '$qty', $txtva, $remise_percent,'".price2num($subprice)."','".price2num($remise)."','".$ref."') ;"; if ( $this->db->query( $sql) ) { $this->update_price();