comment code historybayaran
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user