/** * Renders grid column * * @param Varien_Object $row * @return string */ public function render(Varien_Object $row) { $warehouse_id = Mage::app()->getRequest()->getParam('id'); if (!$warehouse_id) { $warehouse_id = 0; } $product_id = $row->getEntityId(); $allocated_qty = $row->getAllocated(); $url = Mage::helper('adminhtml')->getUrl('inventoryadmin/adminhtml_stock/customerchart'); if ($row->getAllocated()) { return '<p style="text-align:center"><a name="url" href="javascript:void(0)" onclick="showcustomer(' . $product_id . ',' . $warehouse_id . ')">' . $allocated_qty . '</a></p>'; } else { return '0'; } }