예제 #1
0
 /**
  * Transaction Detail
  * 
  * @return array
  */
 private function _getTransactionDetail()
 {
     $arr = array();
     $collection = Mage::getModel('credit/credithistory')->getCollection();
     foreach ($collection as $credithistory) {
         $transactionDetail = MW_Credit_Model_TransactionType::getTransactionDetail($credithistory->getTypeTransaction(), $credithistory->getTransactionDetail(), true);
         $arr[$credithistory->getId()] = $transactionDetail;
     }
     return $arr;
 }
예제 #2
0
 /**
  * Transaction Detail
  * 
  * @return array
  */
 private function _getTransactionDetail()
 {
     $arr = array();
     $collection = Mage::getModel('credit/credithistory')->getCollection()->addFilter('customer_id', Mage::registry('current_customer')->getId());
     foreach ($collection as $credithistory) {
         $transactionDetail = MW_Credit_Model_TransactionType::getTransactionDetail($credithistory->getTypeTransaction(), $credithistory->getTransactionDetail(), true);
         $arr[$credithistory->getId()] = $transactionDetail;
     }
     return $arr;
 }
 public function getTransactionDetail($type, $detail)
 {
     return MW_Credit_Model_TransactionType::getTransactionDetail($type, $detail);
 }