From 1a743939fc8646a4decabf2093a4af1fd536225f Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 4 Aug 2003 12:29:58 +0000 Subject: [PATCH] Gestion des virgules dans les sommes --- htdocs/fourn/facture/paiementfourn.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/fourn/facture/paiementfourn.class.php b/htdocs/fourn/facture/paiementfourn.class.php index 40bcfb1798a..68aa6f49732 100644 --- a/htdocs/fourn/facture/paiementfourn.class.php +++ b/htdocs/fourn/facture/paiementfourn.class.php @@ -50,6 +50,8 @@ class PaiementFourn /* * Insertion dans la base */ + + $this->amount = ereg_replace(",",".",$this->amount); $sql = "INSERT INTO llx_paiementfourn (fk_facture_fourn, datec, datep, amount, fk_user_author, fk_paiement, num_paiement, note)"; $sql .= " VALUES ($this->facid, now(), $this->datepaye,$this->amount, $user->id, $this->paiementid, '$this->num_paiement', '$this->note')";