Gestion de la virgule dans le montant

This commit is contained in:
Rodolphe Quiedeville 2003-09-19 15:01:39 +00:00
parent ba03fe1d04
commit 32589b081f

View File

@ -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')";