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