Gestion des virgules dans les sommes

This commit is contained in:
Rodolphe Quiedeville 2003-08-04 12:29:58 +00:00
parent 1fb30470b0
commit 1a743939fc

View File

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