Exemplo n.º 1
0
 protected function _prepareMassaction()
 {
     parent::_prepareMassaction();
     if (!Mage::helper('udropship')->isUdpoActive()) {
         $this->getMassactionBlock()->addItem('resendPo', array('label' => Mage::helper('sales')->__('Resend PO Notifications'), 'url' => $this->getUrl('udropshipadmin/adminhtml_shipment/resendPo')));
     }
     return $this;
 }
Exemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->setId('sales_shipments_archive_grid');
     $this->_blockGroup = 'iwd_ordermanager';
     $this->_controller = 'adminhtml_sales_order_archive_shipments';
     $this->setDefaultSort('id');
     $this->setDefaultDir('DESC');
     $this->setUseAjax(true);
 }
Exemplo n.º 3
0
 /**
  *
  * @return Mage_Sales_Model_Resource_Order_Shipment_Grid_Collection
  */
 public function getCollection()
 {
     $collection = parent::getCollection();
     if ($collection && !$this->getIsI4ShipsJoined()) {
         /* @var $collection Mage_Sales_Model_Resource_Order_Shipment_Grid_Collection */
         $resource = Mage::getSingleton('core/resource');
         /* @var $resource Mage_Core_Model_Resource */
         $shipsTableName = $resource->getTableName('zitec_dpd_ships');
         $manifestTableName = $resource->getTableName('zitec_dpd_manifest');
         $collection->getSelect()->joinLeft(array('ships' => $shipsTableName), 'ships.shipment_id = main_table.entity_id', array('zitec_manifest_id' => 'ships.manifest_id'))->joinLeft(array('manifest' => $manifestTableName), 'manifest.manifest_id = ships.manifest_id', array('zitec_manifest_ref' => 'manifest.manifest_ref'));
         $this->setIsI4ShipsJoined(true);
     }
     return $collection;
 }
 /**
  * Prepare and add columns to grid
  *
  * @return Mage_Adminhtml_Block_Widget_Grid
  */
 protected function _prepareColumns()
 {
     if ($vendor = Mage::helper('smvendors')->getVendorLogin()) {
         $this->addColumn('increment_id', array('header' => Mage::helper('sales')->__('Shipment #'), 'index' => 'increment_id', 'filter_index' => 'main_table.increment_id', 'type' => 'text'));
         $this->addColumn('created_at', array('header' => Mage::helper('sales')->__('Date Shipped'), 'index' => 'created_at', 'type' => 'datetime'));
         $this->addColumn('order_increment_id', array('header' => Mage::helper('sales')->__('Order #'), 'index' => 'vendor_increment_id', 'filter_index' => 'smo.increment_id', 'type' => 'text'));
         $this->addColumn('order_created_at', array('header' => Mage::helper('sales')->__('Order Date'), 'index' => 'order_created_at', 'type' => 'datetime'));
         $this->addColumn('shipping_name', array('header' => Mage::helper('sales')->__('Ship to Name'), 'index' => 'shipping_name'));
         $this->addColumn('total_qty', array('header' => Mage::helper('sales')->__('Total Qty'), 'index' => 'total_qty', 'type' => 'number'));
         $this->addColumn('action', array('header' => Mage::helper('sales')->__('Action'), 'width' => '50px', 'type' => 'action', 'getter' => 'getId', 'actions' => array(array('caption' => Mage::helper('sales')->__('View'), 'url' => array('base' => '*/vendors_order_shipment/view'), 'field' => 'shipment_id', 'params' => array('come_from' => 'shipment'))), 'filter' => false, 'sortable' => false, 'is_system' => true));
         $this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
         $this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML'));
         $this->sortColumnsByOrder();
         return $this;
     } else {
         $this->sortColumnsByOrder();
         return parent::_prepareColumns();
     }
 }
Exemplo n.º 5
0
 protected function _prepareMassaction()
 {
     parent::_prepareMassaction();
     $this->getMassactionBlock()->addItem('seperator1', array('label' => Mage::helper('sales')->__('---------------'), 'url' => ''));
     $this->getMassactionBlock()->addItem('pdfpack_shipment', array('label' => Mage::helper('sales')->__('PDF Packing Sheets'), 'url' => $this->getUrl('pickpack/sales_shipment/pack')));
     $this->getMassactionBlock()->addItem('pdfpick_shipment', array('label' => Mage::helper('sales')->__('PDF Order-separated Pick List'), 'url' => $this->getUrl('pickpack/sales_shipment/pick')));
     $this->getMassactionBlock()->addItem('pdfenpick_shipment', array('label' => Mage::helper('sales')->__('PDF Shipment-combined Pick List'), 'url' => $this->getUrl('pickpack/sales_shipment/enpick')));
     $this->getMassactionBlock()->addItem('pdfstock_shipment', array('label' => Mage::helper('sales')->__('PDF Out-of-stock List'), 'url' => $this->getUrl('pickpack/sales_shipment/stock')));
     $this->getMassactionBlock()->addItem('pdflabel_shipment', array('label' => Mage::helper('sales')->__('PDF Address Labels'), 'url' => $this->getUrl('pickpack/sales_shipment/label')));
     // $this->getMassactionBlock()->addItem('seperator2', array(
     // 	     'label'=> Mage::helper('sales')->__('---------------'),
     // 	     'url'  => '',
     // 	));
     //
     // 	$this->getMassactionBlock()->addItem('pdfpickjim_shipment', array(
     // 	     'label'=> Mage::helper('sales')->__('*test* PDF Order-combined Pick List'),
     // 	     'url'  => $this->getUrl('pickpack/sales_shipment/pickjim'),
     // 	));
     return $this;
 }
Exemplo n.º 6
0
 public function __construct()
 {
     parent::__construct();
     $this->setUseAjax(true);
     $this->setId('sales_shipment_grid_archive');
 }
Exemplo n.º 7
0
 /**
  * Adds additional columns to the grid
  *
  * @param Mage_Adminhtml_Block_Sales_Shipment_Grid $block
  *
  * @return $this
  */
 protected function _addColumns($block)
 {
     $helper = Mage::helper('tig_myparcel');
     $block->addColumnAfter('shipping_status', array('header' => $helper->__('Shipping status'), 'type' => 'text', 'index' => 'status', 'sortable' => false, 'filter' => false, 'renderer' => 'tig_myparcel/adminhtml_widget_grid_column_renderer_shipment_shippingStatus'), 'shipping_name');
     $block->sortColumnsByOrder();
     return $this;
 }
Exemplo n.º 8
0
 /**
  * Adds two more columns to shipment grid view (status + download pdf)
  *
  * @return Dhl_Intraship_Block_Adminhtml_Sales_Shipment_Grid    $this
  */
 protected function _prepareColumns()
 {
     parent::_prepareColumns();
     $this->addColumn('intraship_status', array('header' => Mage::helper('intraship')->__('Intraship Status'), 'index' => 'status', 'type' => 'options', 'options' => Mage::getSingleton('intraship/shipment')->getStatuses(), 'filter' => version_compare(Mage::getVersion(), '1.4.2.0', '>=') ? null : false, 'sortable' => version_compare(Mage::getVersion(), '1.4.2.0', '>='), 'is_system' => false));
     $this->addColumn('label', array('header' => Mage::helper('intraship')->__('PDF'), 'width' => '50px', 'type' => 'action', 'getter' => 'getShipmentId', 'actions' => array(array('caption' => Mage::helper('sales')->__('PDF'), 'url' => array('base' => 'intraship/shipment/pdf'), 'field' => 'id', 'popup' => true)), 'filter' => false, 'sortable' => false, 'is_system' => false, 'renderer' => 'intraship/adminhtml_sales_shipment_grid_renderer_action'));
     return $this;
 }
 protected function _prepareColumns()
 {
     $this->addImportType('shipments');
     return parent::_prepareColumns();
 }
Exemplo n.º 10
0
 protected function _prepareMassaction()
 {
     parent::_prepareMassaction();
     $this->getMassactionBlock()->addItem('dpd', array('label' => $this->__('Send to DPD'), 'url' => $this->getUrl('dpd/SalesShipment/queue')));
 }