fix aliran tunai dan kelulusan

This commit is contained in:
hafifierahman
2021-02-16 09:59:37 +08:00
parent 93b234b2f9
commit 92caaec739
8 changed files with 260 additions and 46 deletions
+64 -9
View File
@@ -265,11 +265,39 @@ async function openuptambahdanserah(e)
},
success:function(data)
{
Swal.fire({
icon: 'success',
title: 'Tambah Pendahuluan',
text: 'Tambah Pendahuluan berjaya dipohon!'
})
title: 'Tunggu Pengesahan Daripada Khazanah.',
icon: 'info',
width: 600,
padding: '3em',
background: '#fffff',
showCancelButton: false,
showConfirmButton: false,
allowOutsideClick: false,
allowEscapeKey: false,
allowEnterKey: false
})
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
cluster: 'ap1',
encrypted: true
});
var channel = pusher.subscribe('pendahuluanserahan-notice');
channel.bind('penserahan-event', function(data) {
// let message = JSON.stringify(data);
Swal.fire({
icon: 'success',
title: 'Tambah Pendahuluan',
text: 'Tambah Pendahuluan berjaya dipohon!'
}).then(function(){
location.reload();
});
});
},
error: function(xhRequest, ajaxOptions, thrownError){
console.log(xhRequest);
@@ -372,11 +400,38 @@ function tambahdanserahanfunc(e)
},
success:function(data)
{
Swal.fire({
icon: 'success',
title: 'Serahan Modal',
text: 'Serahan modal berjaya dipohon!'
})
Swal.fire({
title: 'Tunggu Pengesahan Daripada Khazanah.',
icon: 'info',
width: 600,
padding: '3em',
background: '#fffff',
showCancelButton: false,
showConfirmButton: false,
allowOutsideClick: false,
allowEscapeKey: false,
allowEnterKey: false
})
var pusher = new Pusher('26b0ec2f297f94b7aa9b', {
cluster: 'ap1',
encrypted: true
});
var channel = pusher.subscribe('pendahuluanserahan-notice');
channel.bind('penserahan-event', function(data) {
// let message = JSON.stringify(data);
Swal.fire({
icon: 'success',
title: 'Serahan Modal',
text: 'Serahan modal berjaya dipohon!'
}).then(function(){
location.reload();
});
});
$('#denominasiModal').modal('hide');
},
error: function(xhRequest, ajaxOptions, thrownError){