Showing with 2 additions and 2 deletions.
  1. +1 −1 htdocs/product/class/product.class.php
  2. +1 −1 htdocs/product/stock/class/entrepot.class.php
2 changes: 1 addition & 1 deletion htdocs/product/class/product.class.php
Expand Up @@ -2994,7 +2994,7 @@ function load_stock()
$sql = "SELECT ps.reel, ps.fk_entrepot, ps.pmp, ps.rowid";
$sql.= " FROM ".MAIN_DB_PREFIX."product_stock as ps";
$sql.= ", ".MAIN_DB_PREFIX."entrepot as w";
$sql.= " WHERE w.entity IN (".getEntity('warehouse', 1).")";
$sql.= " WHERE w.entity IN (".getEntity('stock', 1).")";
$sql.= " AND w.rowid = ps.fk_entrepot";
$sql.= " AND ps.fk_product = ".$this->id;

Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/stock/class/entrepot.class.php
Expand Up @@ -358,7 +358,7 @@ function list_array($status=1)

$sql = "SELECT rowid, label";
$sql.= " FROM ".MAIN_DB_PREFIX."entrepot";
$sql.= " WHERE entity IN (".getEntity('warehouse', 1).")";
$sql.= " WHERE entity IN (".getEntity('stock', 1).")";
$sql.= " AND statut = ".$status;

$result = $this->db->query($sql);
Expand Down