Add registration date when export "Etat Solde"

This commit is contained in:
Djery-Tom 2021-08-11 12:23:50 +01:00
parent d6285afcea
commit 4facfe4f6c
3 changed files with 18 additions and 3 deletions

View File

@ -623,5 +623,6 @@ $lang['settings_updated'] = "Update settings";
$lang['steps_map_loading'] = "Number of agents geolocated by steps on the map"; $lang['steps_map_loading'] = "Number of agents geolocated by steps on the map";
$lang['sms_notifications'] = "SMS notifications"; $lang['sms_notifications'] = "SMS notifications";
$lang['advertising'] = "Advertising"; $lang['advertising'] = "Advertising";
$lang['registration_date'] = "Registration date";
$lang['sponsor'] = 'Sponsor'
?> ?>

View File

@ -635,4 +635,6 @@ $lang['settings_updated'] = "Mise à jour des paramètres";
$lang['steps_map_loading'] = "Nombre d'agents géolocalisés par pas sur la carte"; $lang['steps_map_loading'] = "Nombre d'agents géolocalisés par pas sur la carte";
$lang['sms_notifications'] = "Notifications par SMS"; $lang['sms_notifications'] = "Notifications par SMS";
$lang['advertising'] = "Publicité"; $lang['advertising'] = "Publicité";
$lang['registration_date'] = "Date d'inscription";
$lang['sponsor'] = 'Parrain';
?> ?>

View File

@ -107,10 +107,11 @@
<th><?= $this->lang->line('Telephone') ?></th> <th><?= $this->lang->line('Telephone') ?></th>
<th><?= $this->lang->line('code membre') ?></th> <th><?= $this->lang->line('code membre') ?></th>
<th>Agent</th> <th>Agent</th>
<th>Parrain</th> <th><?=$this->lang->line('sponsor')?></th>
<?php if ($this->session->userdata('category') != 'super') { ?> <?php if ($this->session->userdata('category') != 'super') { ?>
<th align='center'>Action</th> <th align='center'>Action</th>
<?php } ?> <?php } ?>
<th><?=$this->lang->line('registration_date')?></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -141,12 +142,14 @@
</button> </button>
</td> </td>
<?php } ?> <?php } ?>
<td><?= $row->agent_registration_date?></td>
</tr> </tr>
<?php <?php
} }
?> ?>
</tbody> </tbody>
</table>
<?php <?php
} else { } else {
@ -157,7 +160,6 @@
} }
?> ?>
</table>
</div> </div>
</div> </div>
@ -268,6 +270,16 @@
moment.updateLocale(moment.locale(format), {invalidDate: ""}); // Blank text when is invalid date moment.updateLocale(moment.locale(format), {invalidDate: ""}); // Blank text when is invalid date
var table = $('#transactions').DataTable({ var table = $('#transactions').DataTable({
"aaSorting": [[0, "asc"]], "aaSorting": [[0, "asc"]],
"columnDefs": [
{
targets: [8],
render: $.fn.dataTable.render.moment('YYYY-MM-DD HH:mm:ss', 'D MMMM YYYY HH:mm:ss', format),
},
{
"targets": [8],
"visible": false
}
],
dom: 'Bfrtip', dom: 'Bfrtip',
"buttons": [ "buttons": [
'pageLength', 'pageLength',