From 6fc9ec57dc4d0f3de67522d70e4d4c38bdb050d8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Jul 2004 21:53:40 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Probl=E8me=20de=20,=20sur=20le=20montant?= =?UTF-8?q?=20d'un=20paiement.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/paiement.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index 3db6fc987d2..2ba63d4d260 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -122,12 +122,12 @@ class Paiement { $facid = $key; $value = trim($value); - $amount = round(ereg_replace(",",".",$value), 2); + $amount = ereg_replace(",",".",round($value, 2)); if (is_numeric($amount) && $amount > 0) { $sql = "INSERT INTO ".MAIN_DB_PREFIX."paiement_facture (fk_facture, fk_paiement, amount)"; - $sql .= " VALUES (".$facid.",". $this->id.",". $amount.")"; + $sql .= " VALUES ('".$facid."','". $this->id."','". $amount."')"; if (! $this->db->query($sql) ) { $sql_err++;