Fix beneficiaries list bug

This commit is contained in:
Djery-Tom 2021-10-28 13:53:12 +01:00
parent 436cc49583
commit 5c9c9dd65c
2 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ class Superviseur_dash extends CI_Controller
if ($wallet) { if ($wallet) {
if ($data['hasWallet']->first_row()->type == 'visa') { if ($data['hasWallet']->first_row()->type == 'visa') {
$transactions = $this->user_model->getAgentTransactions($wallet->first_row()->wallet_id); $transactions = $this->user_model->getAgentTransactions($wallet->first_row()->wallet_id);
} elseif ($data['hasWallet']->first_row()->type == 'ilink') { } else if ($data['hasWallet']->first_row()->type == 'ilink') {
$transactions = $this->user_model->getAgentiLinkTransactions($wallet->first_row()->wallet_id); $transactions = $this->user_model->getAgentiLinkTransactions($wallet->first_row()->wallet_id);
} }
if ($transactions) { if ($transactions) {

View File

@ -220,7 +220,7 @@
$bonus_amount = Money::of(round($row->bonus_amount, 2), $subscription->currency_code, $this->context)->formatTo('fr_FR'); $bonus_amount = Money::of(round($row->bonus_amount, 2), $subscription->currency_code, $this->context)->formatTo('fr_FR');
echo "<tr> echo "<tr>
<td>" . $i+1 . "</td> <td>" . ($i+1) . "</td>
<td>" . $row->lastname.' '.$row->firstname . "</td> <td>" . $row->lastname.' '.$row->firstname . "</td>
<td>" . $row->gender . "</td> <td>" . $row->gender . "</td>
<td>" . $row->birthdate . "</td> <td>" . $row->birthdate . "</td>