Revert "Finadev (pull request #122)"

This commit is contained in:
dev_kopkb
2024-02-14 13:09:00 +00:00
parent c2ab75467a
commit 89c339ea1f
7 changed files with 93 additions and 152 deletions
+7 -8
View File
@@ -1402,21 +1402,20 @@
$.each(data,function(index,bayaran){
var urlroute = '{{ route("resit.ansuran", ":id") }}';
// var bayaranteller;
var bayaranteller;
// if(bayaran['teller'] = 'Online'){
// bayaranteller = 'ON'; }
// else {
// bayaranteller = 'KT';
// }
if(bayaran['teller'] != 'Online')
bayaranteller = 'KT';
if(bayaran['teller'] == 'Online')
bayaranteller = 'ON';
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;