diff --git a/htdocs/commande/commande.class.php b/htdocs/commande/commande.class.php index 8a4ab9b8a42..cbe8d03fde5 100644 --- a/htdocs/commande/commande.class.php +++ b/htdocs/commande/commande.class.php @@ -948,7 +948,7 @@ class Commande } $sql = 'UPDATE '.MAIN_DB_PREFIX.'commandedet'; - $sql.= " SET description='".addslashes($desc)."',price='".$price."',subprice='".$subprice."',"; + $sql.= " SET description='".addslashes($desc)."',price='".price2num($price)."',subprice='".$subprice."',"; $sql.= " remise='".$remise."',remise_percent='".$remise_percent."',qty='".$qty."',tva_tx='".$tva_tx."'"; $sql.= " WHERE rowid = '".$rowid."'"; diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index c4d47cd8901..0dad7908cb8 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -293,7 +293,7 @@ class Propal $sql = "UPDATE ".MAIN_DB_PREFIX."propaldet "; $sql.= " SET qty='".$qty."'"; - $sql.= " , price='". $price."'"; + $sql.= " , price='". price2num($price)."'"; $sql.= " , remise_percent='".$remise_percent."'"; $sql.= " , subprice='".$subprice."'"; $sql.= " , tva_tx='".$tva_tx."'";