Fix beneficiaries list bug
This commit is contained in:
parent
436cc49583
commit
5c9c9dd65c
|
@ -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) {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue