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

This commit is contained in:
bMancone
2011-12-05 16:46:49 +00:00
parent a6cacd487d
commit 81b04a9d6f
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);
}
}