Gestion de la virgule dans les champs prix
This commit is contained in:
parent
0fa31c9f85
commit
a64a2345cd
@ -400,6 +400,7 @@ class Facture
|
||||
{
|
||||
if ($this->brouillon)
|
||||
{
|
||||
$pu = ereg_replace(",",".",$pu);
|
||||
$sql = "INSERT INTO llx_facturedet (fk_facture,description,price,qty,tva_taux, fk_product)";
|
||||
$sql .= " VALUES ($facid, '$desc', $pu, $qty, $txtva, $fk_product) ;";
|
||||
|
||||
@ -417,6 +418,7 @@ class Facture
|
||||
{
|
||||
if ($this->brouillon)
|
||||
{
|
||||
$pu = ereg_replace(",",".",$pu);
|
||||
$sql = "UPDATE llx_facturedet set description='$desc',price=$pu,qty=$qty WHERE rowid = $rowid ;";
|
||||
$result = $this->db->query( $sql);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user