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
+7 -6
View File
@@ -1402,20 +1402,21 @@
$.each(data,function(index,bayaran){ $.each(data,function(index,bayaran){
var urlroute = '{{ route("resit.ansuran", ":id") }}'; var urlroute = '{{ route("resit.ansuran", ":id") }}';
var bayaranteller; // var bayaranteller;
if(bayaran['teller'] != 'Online') // if(bayaran['teller'] = 'Online'){
bayaranteller = 'KT'; // bayaranteller = 'ON'; }
if(bayaran['teller'] == 'Online') // else {
bayaranteller = 'ON'; // bayaranteller = 'KT';
// }
urlroute = urlroute.replace(':id', bayaran['id']); urlroute = urlroute.replace(':id', bayaran['id']);
historybayarandatatable.row.add([ historybayarandatatable.row.add([
counter, counter,
bayaran['created_at'], bayaran['created_at'],
"RM " + bayaran['duit_masuk'], "RM " + bayaran['duit_masuk'],
bayaranteller, //bayaranteller,
'<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>' '<a class="btn btn-info" target="_blank" href='+ urlroute +'>Cetak</a>'
]).draw(); ]).draw();
counter = counter + 1; counter = counter + 1;
+1 -1
View File
@@ -43,7 +43,7 @@
<th>Bil</th> <th>Bil</th>
<th>Tarikh Bayaran</th> <th>Tarikh Bayaran</th>
<th>Bayaran</th> <th>Bayaran</th>
<th>Jenis Bayaran</th> {{-- <th>Jenis Bayaran</th> --}}
<th>Action</th> <th>Action</th>
</tr> </tr>
</thead> </thead>