+ Update Comission transfers history
This commit is contained in:
parent
421c7ec3f8
commit
a973c5f13b
|
@ -534,7 +534,7 @@ class Hyperviseur_dash extends CI_Controller
|
||||||
}else if ($type == 'deleted_transactions')
|
}else if ($type == 'deleted_transactions')
|
||||||
$data['transactions'] = $this->user_model->getDeletedTransactions($startDate, $endDate, $this->session->userdata('network_id'));
|
$data['transactions'] = $this->user_model->getDeletedTransactions($startDate, $endDate, $this->session->userdata('network_id'));
|
||||||
else if ($type == 'commission_transfer')
|
else if ($type == 'commission_transfer')
|
||||||
$data['transactions'] = $this->wallet_model->getCommissionTransfers($startDate, $endDate, $this->session->userdata('member_code'));
|
$data['transactions'] = $this->wallet_model->getCommissionTransfersByNetwork($startDate, $endDate, $this->session->userdata('network_id'));
|
||||||
else if ($type == 'balance_statement')
|
else if ($type == 'balance_statement')
|
||||||
$data['wallets'] = $this->user_model->getInfosWalletAgentForHyper($this->session->userdata('network_id'));
|
$data['wallets'] = $this->user_model->getInfosWalletAgentForHyper($this->session->userdata('network_id'));
|
||||||
else if ($type == 'refund_history')
|
else if ($type == 'refund_history')
|
||||||
|
|
|
@ -760,6 +760,18 @@ class Wallet_model extends CI_Model
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCommissionTransfersByNetwork($debut , $fin , $id_network){
|
||||||
|
$chain = $debut ? " AND date BETWEEN '".$debut."' AND '".$fin."'" : "";
|
||||||
|
$query = $this->db->query("SELECT *
|
||||||
|
FROM infos_transferts_commission
|
||||||
|
WHERE `network_id`='".$id_network."'".$chain);
|
||||||
|
if($query->num_rows()>0){
|
||||||
|
return $query;
|
||||||
|
}else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function getIlinkTransactionsSup($debut , $fin , $codeMembre){
|
public function getIlinkTransactionsSup($debut , $fin , $codeMembre){
|
||||||
$chain = $debut ? " AND date BETWEEN '".$debut."' AND '".$fin."'" : "";
|
$chain = $debut ? " AND date BETWEEN '".$debut."' AND '".$fin."'" : "";
|
||||||
$query = $this->db->query("SELECT *
|
$query = $this->db->query("SELECT *
|
||||||
|
|
Loading…
Reference in New Issue