Commit 9a40de83 by Jansa Jose

J : wallet transaction history changes

parent 5cf6017c
...@@ -2239,7 +2239,7 @@ class Webservice_model extends CI_Model { ...@@ -2239,7 +2239,7 @@ class Webservice_model extends CI_Model {
$user_id = $this->auth_token_get($data['auth_token']); $user_id = $this->auth_token_get($data['auth_token']);
if($user_id > 0){ if($user_id > 0){
$countryData = $this->getCountryData($user_id); $countryData = $this->getCountryData($user_id);
$sql = "SELECT wallet_trans_id,amount,transaction_type,created_date,status FROM wallet_transactions WHERE customer_id='$user_id'"; $sql = "SELECT transaction_code AS transaction_number,amount,transaction_type,created_date,status FROM wallet_transactions WHERE customer_id='$user_id'";
$query = $this->db->query($sql); $query = $this->db->query($sql);
if(empty($query) || empty($walletHistory = $query->result_array())){ if(empty($query) || empty($walletHistory = $query->result_array())){
$res = array('status'=>'error','message'=>'No History Found','code'=>'ER13'); $res = array('status'=>'error','message'=>'No History Found','code'=>'ER13');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment