Fix: manquait point virgule
This commit is contained in:
parent
9fe206d9b9
commit
72c19623a8
@ -158,23 +158,23 @@ class MouvementStock
|
|||||||
$sql.= " WHERE fk_product = $fk_product;";
|
$sql.= " WHERE fk_product = $fk_product;";
|
||||||
|
|
||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
{
|
{
|
||||||
while ($row = $this->db->fetch_row($resql) )
|
while ($row = $this->db->fetch_row($resql) )
|
||||||
{
|
{
|
||||||
array_push($row[0]);
|
array_push($row[0]);
|
||||||
}
|
}
|
||||||
$this->db->free($resql);
|
$this->db->free($resql);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dolibarr_syslog("MouvementStock::_Create echec update ".$this->error);
|
dolibarr_syslog("MouvementStock::_Create echec update ".$this->error);
|
||||||
$error = -2;
|
$error = -2;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($pids as $pid)
|
foreach($pids as $pid)
|
||||||
{
|
{
|
||||||
$this->_create($user, $pid, $entrepot_id, $qty, $type, $price=0)
|
$this->_create($user, $pid, $entrepot_id, $qty, $type, $price=0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $error;
|
return $error;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user