Fix: Bug #460 - Wrong entity assignment when creating a warehouse
This commit is contained in:
parent
51ccb33964
commit
c429c421da
@ -2424,7 +2424,7 @@ class Product extends CommonObject
|
|||||||
$sql = "SELECT ps.reel, ps.fk_entrepot, ps.pmp";
|
$sql = "SELECT ps.reel, ps.fk_entrepot, ps.pmp";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."product_stock as ps";
|
$sql.= " FROM ".MAIN_DB_PREFIX."product_stock as ps";
|
||||||
$sql.= ", ".MAIN_DB_PREFIX."entrepot as w";
|
$sql.= ", ".MAIN_DB_PREFIX."entrepot as w";
|
||||||
$sql.= " WHERE w.entity = (".getEntity('warehouse', 1).")";
|
$sql.= " WHERE w.entity IN (".getEntity('warehouse', 1).")";
|
||||||
$sql.= " AND w.rowid = ps.fk_entrepot";
|
$sql.= " AND w.rowid = ps.fk_entrepot";
|
||||||
$sql.= " AND ps.fk_product = ".$this->id;
|
$sql.= " AND ps.fk_product = ".$this->id;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user