comment code historybayaran

This commit is contained in:
Afrina Alimi
2024-02-13 11:47:04 +08:00
parent c999b5fb09
commit 3c24d862de
2 changed files with 9 additions and 8 deletions
+8 -7
View File
@@ -1402,20 +1402,21 @@
$.each(data,function(index,bayaran){
var urlroute = '{{ route("resit.ansuran", ":id") }}';
var bayaranteller;
// var bayaranteller;
if(bayaran['teller'] != 'Online')
bayaranteller = 'KT';
if(bayaran['teller'] == 'Online')
bayaranteller = 'ON';
// if(bayaran['teller'] = 'Online'){
// bayaranteller = 'ON'; }
// else {
// bayaranteller = 'KT';
// }
urlroute = urlroute.replace(':id', bayaran['id']);
historybayarandatatable.row.add([
counter,
bayaran['created_at'],
"RM " + bayaran['duit_masuk'],
bayaranteller,
//bayaranteller,
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
]).draw();
counter = counter + 1;
+1 -1
View File
@@ -43,7 +43,7 @@
<th>Bil</th>
<th>Tarikh Bayaran</th>
<th>Bayaran</th>
<th>Jenis Bayaran</th>
{{-- <th>Jenis Bayaran</th> --}}
<th>Action</th>
</tr>
</thead>