Gestion des virgules dans les sommes
This commit is contained in:
parent
1fb30470b0
commit
1a743939fc
@ -51,6 +51,8 @@ class PaiementFourn
|
|||||||
* Insertion dans la base
|
* 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 = "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')";
|
$sql .= " VALUES ($this->facid, now(), $this->datepaye,$this->amount, $user->id, $this->paiementid, '$this->num_paiement', '$this->note')";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user