tambah function tanya upah dan status bayaran dlm callcenter

This commit is contained in:
Nur Izzati Zulkifli
2024-03-24 15:28:11 +08:00
parent 91177ffc0b
commit 61f0d52b2a
5 changed files with 4421 additions and 3 deletions
@@ -1251,11 +1251,20 @@
$.each(data,function(index,bayaran){
var urlroute = '{{ route("resit.ansuran", ":id") }}';
var bayaranteller;
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,
bayaran['trans_type'],
''
]).draw();