From bb6ce878e53ec8c3997c8a19baeb4fb102b60648 Mon Sep 17 00:00:00 2001 From: Andre Cianfarani Date: Mon, 13 Feb 2006 11:22:45 +0000 Subject: [PATCH] =?UTF-8?q?bugfix=20:=20lors=20d'un=20updateline=20le=20pr?= =?UTF-8?q?ix=20=E9tait=20ins=E9r=E9=20sans=20price2num,=20donc=20les=20d?= =?UTF-8?q?=E9cimales=20n'=E9tait=20pas=20prise=20en=20compte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/commande/commande.class.php | 2 +- htdocs/propal.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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."'";