fix missing commit and return

This commit is contained in:
Maxime Kohlhaas 2016-12-11 02:50:31 +01:00
parent f7524b93ad
commit a4a47a064c

View File

@ -2319,7 +2319,7 @@ class CommandeFournisseur extends CommonOrder
$localtax1_type=$localtaxes_type[0]; $localtax1_type=$localtaxes_type[0];
$localtax2_type=$localtaxes_type[2]; $localtax2_type=$localtaxes_type[2];
$subprice = price2num($pu,'MU'); $subprice = price2num($pu_ht,'MU');
$this->line=new CommandeFournisseurLigne($this->db); $this->line=new CommandeFournisseurLigne($this->db);
$this->line->fetch($rowid); $this->line->fetch($rowid);
@ -2375,9 +2375,11 @@ class CommandeFournisseur extends CommonOrder
// Mise a jour info denormalisees au niveau facture // Mise a jour info denormalisees au niveau facture
if (! $error) if ($result > 0)
{ {
$this->update_price('','auto'); $this->update_price('','auto');
$this->db->commit();
return $result;
} }
else else
{ {