From cda4fa7016ccf889902d9cc0423416bcb534a0dd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Mon, 13 Feb 2006 14:13:44 +0000 Subject: [PATCH] bugfix --- htdocs/commande/commande.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index db12b513651..07d2180a989 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -342,11 +342,11 @@ class Commande if ($conf->global->CHANGE_PROD_DESC) { - $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','". $price."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_product_desc)."', '$remise_percent', '$subprice') ; "; + $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','".price2num($price)."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_product_desc)."', '$remise_percent', '$subprice') ; "; } else { - $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','". $price."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_desc)."', '$remise_percent', '$subprice') ; "; + $sql .= " ('".$this->id."', '$p_product_id','". $p_qty."','".price2num($price)."','".$p_tva_tx."','".addslashes($p_desc)."','".addslashes($p_desc)."', '$remise_percent', '$subprice') ; "; } if ($this->db->query($sql) )