Fix comments in receivings

This commit is contained in:
jekkos-t520
2014-10-03 17:41:39 +02:00
parent e994cd5444
commit 5a4ac8dde3
6 changed files with 44 additions and 9 deletions

View File

@@ -13,9 +13,7 @@ class Item_lib
{
if(!$this->CI->session->userdata('item_location'))
{
$stock_locations = $this->CI->Stock_locations->get_allowed_locations();
$key=current(array_keys($stock_locations));
$location_name = $stock_locations[$key]['location_id'];
$location_name = $this->Stock_locations->get_default_location();
$this->set_item_location($location_name);
}
return $this->CI->session->userdata('item_location');