Fix: Some entries were missing in warehouse content list
This commit is contained in:
parent
7afa1f7067
commit
0f5bebfa7e
@ -328,7 +328,7 @@ else
|
|||||||
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cp.fk_categorie = c.rowid";
|
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."categorie as c ON cp.fk_categorie = c.rowid";
|
||||||
}
|
}
|
||||||
$sql .= " WHERE ps.fk_product = p.rowid ";
|
$sql .= " WHERE ps.fk_product = p.rowid ";
|
||||||
$sql .= " AND ps.reel >0";
|
$sql .= " AND ps.reel <> 0"; // We do not show if stock is 0 (no product in this warehouse)
|
||||||
$sql .= " AND ps.fk_entrepot = ".$entrepot->id;
|
$sql .= " AND ps.fk_entrepot = ".$entrepot->id;
|
||||||
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
if ($conf->categorie->enabled && !$user->rights->categorie->voir)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user