From 32589b081f6dc2a4939c86711db37fbade3b9d2d Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 19 Sep 2003 15:01:39 +0000 Subject: [PATCH] Gestion de la virgule dans le montant --- htdocs/paiement.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/paiement.class.php b/htdocs/paiement.class.php index eef1e317ac5..e9ee46cd793 100644 --- a/htdocs/paiement.class.php +++ b/htdocs/paiement.class.php @@ -51,6 +51,8 @@ class Paiement * Insertion dans la base */ + $this->amount = ereg_replace(",",".",$this->amount); + $sql = "INSERT INTO llx_paiement (fk_facture, datec, datep, amount, author, fk_paiement, num_paiement, note)"; $sql .= " VALUES ($this->facid, now(), $this->datepaye,$this->amount,'$this->author', $this->paiementid, '$this->num_paiement', '$this->note')";