Example #1
0
 public function render(Varien_Object $row)
 {
     $html = '';
     $permission = Mage::helper('inventoryplus')->getPermission($row->getWarehouseId(), 'can_adjust');
     if ($row->getAdjustStatus() == 0) {
         $html = '<a href="' . $this->getUrl('adminhtml/inp_adjuststock/edit', array('id' => $row->getId())) . '">' . Mage::helper('inventoryplus')->__('Edit') . '</a>';
     } else {
         $html = '<a href="' . $this->getUrl('adminhtml/inp_adjuststock/edit', array('id' => $row->getId())) . '">' . Mage::helper('inventoryplus')->__('View') . '</a>';
     }
     return $html;
 }