// SupplyOrders: fixed products loaded under a particular threshold. StockMvt: CSV export

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10940 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
bMancone
2011-12-05 16:46:49 +00:00
parent 6255d67944
commit 7576b8f407
3 changed files with 99 additions and 21 deletions
+16 -1
View File
@@ -431,4 +431,19 @@ class WarehouseCore extends ObjectModel
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($query);
}
}
/**
* For a given $id_warehouse, returns its name
* @param int $id_warehouse
* @return string name
*/
public static function getWarehouseNameById($id_warehouse)
{
$query = new DbQuery();
$query->select('name');
$query->from('warehouse');
$query->where('id_warehouse = '.(int)$id_warehouse);
return Db::getInstance(_PS_USE_SQL_SLAVE_)->getValue($query);
}
}