public function __construct() { parent::__construct(); $this->setId('reportGrid'); $this->setSaveParametersInSession(true); $this->setUseAjax(true); $this->setPagerVisibility(false); $this->setFilterVisibility(false); $locationIds = array(); if (Mage::helper('webpos')->isInventoryWebPOS11Active()) { $warehouses = Mage::helper('inventoryplus/warehouse')->getAllWarehouseName(); if (count($warehouses) > 0) { foreach ($warehouses as $warehouseId => $warehouseName) { $locationIds[$warehouseId] = $warehouseName; } } } else { $locationCollection = Mage::getModel('webpos/userlocation')->getCollection(); if (count($locationCollection) > 0) { foreach ($locationCollection as $location) { $locationIds[$location->getId()] = $location->getDisplayName(); } } } $this->locationIds = $locationIds; }
public function __construct() { parent::__construct(); $this->setId('reportGrid'); $this->setSaveParametersInSession(true); $this->setUseAjax(true); $this->setPagerVisibility(false); $this->setFilterVisibility(false); $locationIds = array(); $locationCollection = Mage::getModel('webpos/userlocation')->getCollection(); if (count($locationCollection) > 0) { foreach ($locationCollection as $location) { $locationIds[$location->getId()] = $location->getDisplayName(); } } $this->locationIds = $locationIds; }
public function __construct() { parent::__construct(); $this->setId('reportGrid'); $this->setSaveParametersInSession(true); $this->setUseAjax(true); $this->setPagerVisibility(false); $this->setFilterVisibility(false); $userIds = array(); $posuserCollection = Mage::getModel('webpos/user')->getCollection(); if (count($posuserCollection) > 0) { foreach ($posuserCollection as $user) { $userIds[$user->getId()] = $user->getDisplayName() != '' ? $user->getDisplayName() : $user->getUsername(); } } $this->userIds = $userIds; }