fix layout gadai and fix ansuran return fail
This commit is contained in:
@@ -1270,17 +1270,26 @@
|
||||
},
|
||||
success:function(success_data){
|
||||
|
||||
var urlroute = '{{ route("resit.ansurans", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', norujukan);
|
||||
if(success_data != 'error'){
|
||||
var urlroute = '{{ route("resit.ansurans", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', norujukan);
|
||||
|
||||
Swal.fire(
|
||||
'Berjaya!',
|
||||
'Bayaran Ansuran Berjaya',
|
||||
'success'
|
||||
).then(function() {
|
||||
window.open(urlroute, '_blank');
|
||||
window.location.replace("{{ route('customer_info') }}");
|
||||
})
|
||||
Swal.fire(
|
||||
'Berjaya!',
|
||||
'Bayaran Ansuran Berjaya',
|
||||
'success'
|
||||
).then(function() {
|
||||
window.open(urlroute, '_blank');
|
||||
window.location.replace("{{ route('customer_info') }}");
|
||||
})
|
||||
}else{
|
||||
Swal.fire(
|
||||
'Tidak Berjaya!',
|
||||
'Bayaran ansuran tidak berjaya!',
|
||||
'error'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user