From 260cca20225e2758a9aeb7f7d17b21ae2c87b25c Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 20 Jul 2004 14:06:30 +0000 Subject: [PATCH] =?UTF-8?q?G=E8re=20la=20virgule=20dans=20update=5Fprice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/propal.class.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/htdocs/propal.class.php b/htdocs/propal.class.php index 54055b2919a..c1d027c317c 100644 --- a/htdocs/propal.class.php +++ b/htdocs/propal.class.php @@ -308,7 +308,13 @@ class Propal /* * */ - $sql = "UPDATE ".MAIN_DB_PREFIX."propal set price='$this->total_ht', tva='$this->total_tva', total='$this->total_ttc', remise='$this->total_remise' WHERE rowid = $this->id"; + $sql = "UPDATE ".MAIN_DB_PREFIX."propal SET"; + $sql .= " price='". ereg_replace(",",".",$this->total_ht)."'"; + $sql .= ", tva='". ereg_replace(",",".",$this->total_tva)."'"; + $sql .= ", total='". ereg_replace(",",".",$this->total_ttc)."'"; + $sql .= ", remise='".ereg_replace(",",".",$this->total_remise)."'"; + $sql .=" WHERE rowid = $this->id"; + if ( $this->db->query($sql) ) { return 1;