Пример #1
0
 protected function _prepareColumns()
 {
     $this->addColumn('withdrawn_id', array('header' => Mage::helper('affiliate')->__('ID'), 'align' => 'left', 'index' => 'withdrawn_id', 'name' => 'withdrawn_id', 'width' => 15));
     $this->addColumn('withdrawn_time', array('header' => Mage::helper('affiliate')->__('Withdrawal Time'), 'type' => 'datetime', 'align' => 'center', 'index' => 'withdrawn_time', 'width' => 100));
     $this->addColumn('withdrawn_amount', array('header' => Mage::helper('affiliate')->__('Withdrawal Amount'), 'align' => 'left', 'type' => 'price', 'index' => 'withdrawn_amount', 'currency_code' => Mage::app()->getBaseCurrencyCode()));
     $this->addColumn('fee', array('header' => Mage::helper('affiliate')->__('Payment Processing Fee'), 'align' => 'left', 'type' => 'price', 'index' => 'fee', 'currency_code' => Mage::app()->getBaseCurrencyCode()));
     $this->addColumn('amount_receive', array('header' => Mage::helper('affiliate')->__('Net Amount'), 'align' => 'center', 'type' => 'price', 'index' => 'amount_receive', 'currency_code' => Mage::app()->getBaseCurrencyCode()));
     $this->addColumn('status', array('header' => Mage::helper('affiliate')->__('Status'), 'align' => 'center', 'index' => 'status', 'type' => 'options', 'options' => MW_Affiliate_Model_Status::getOptionArray(), 'width' => 100));
     return parent::_prepareColumns();
 }
Пример #2
0
 protected function _prepareColumns()
 {
     $this->addColumn('withdrawn_id', array('header' => Mage::helper('affiliate')->__('ID'), 'align' => 'left', 'index' => 'withdrawn_id', 'name' => 'withdrawn_id', 'width' => 15));
     $this->addColumn('email', array('header' => Mage::helper('affiliate')->__('Affiliate Account'), 'align' => 'left', 'index' => 'email', 'width' => '250px', 'type' => 'text', 'renderer' => 'affiliate/adminhtml_renderer_emailaffiliatemember'));
     $this->addColumn('payment_gateway', array('header' => Mage::helper('affiliate')->__('Payment Method'), 'align' => 'left', 'index' => 'payment_gateway', 'type' => 'options', 'options' => $this->_getPaymentGatewayArray(), 'filter' => false, 'sortable' => false));
     $this->addColumn('payment_email', array('header' => Mage::helper('affiliate')->__('Payment Email'), 'align' => 'left', 'index' => 'payment_email', 'type' => 'text'));
     $this->addColumn('withdrawn_time', array('header' => Mage::helper('affiliate')->__('Withdrawal Time'), 'type' => 'datetime', 'align' => 'center', 'index' => 'withdrawn_time'));
     $this->addColumn('withdrawn_amount', array('header' => Mage::helper('affiliate')->__('Withdrawal Amount'), 'align' => 'left', 'type' => 'price', 'index' => 'withdrawn_amount', 'currency_code' => Mage::app()->getBaseCurrencyCode()));
     $this->addColumn('fee', array('header' => Mage::helper('affiliate')->__('Payment Processing Fee'), 'align' => 'left', 'type' => 'price', 'index' => 'fee', 'currency_code' => Mage::app()->getBaseCurrencyCode()));
     $this->addColumn('amount_receive', array('header' => Mage::helper('affiliate')->__('Net Amount'), 'align' => 'center', 'type' => 'price', 'index' => 'amount_receive', 'currency_code' => Mage::app()->getBaseCurrencyCode()));
     $this->addColumn('status', array('header' => Mage::helper('affiliate')->__('Status'), 'align' => 'center', 'index' => 'status', 'type' => 'options', 'options' => MW_Affiliate_Model_Status::getOptionArray(), 'width' => 100));
     $this->addExportType('*/*/exportCsv', Mage::helper('affiliate')->__('CSV'));
     $this->addExportType('*/*/exportXml', Mage::helper('affiliate')->__('XML'));
     return parent::_prepareColumns();
 }