updated untuk 28-9-2022
This commit is contained in:
@@ -1050,6 +1050,7 @@
|
||||
if($('#sltjenistebus').find(":selected").val() == 'T'){
|
||||
|
||||
var adadah = false;
|
||||
var adaonline = false;
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
@@ -1062,7 +1063,6 @@
|
||||
|
||||
if(count > 0)
|
||||
{
|
||||
console.log(count);
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adadah = true;
|
||||
@@ -1070,7 +1070,25 @@
|
||||
}
|
||||
});
|
||||
|
||||
if(adadah === true)
|
||||
$.ajax({
|
||||
method:'get',
|
||||
datatype: 'json',
|
||||
url: api + '/api/searchsagonline/',
|
||||
async:false,
|
||||
data: { 'norujukan' : norujukan },
|
||||
success:function(success_data){
|
||||
|
||||
if(success_data == true)
|
||||
{
|
||||
Swal.fire('Amaran!','Bayaran online belum diproses!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adaonline = true;
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
if(adadah === true || adaonline === true)
|
||||
{
|
||||
return false;
|
||||
event.preventDefault();
|
||||
@@ -1179,6 +1197,28 @@
|
||||
///////////
|
||||
|
||||
}else if($('#sltjenistebus').find(":selected").val() == 'A'){
|
||||
|
||||
$.ajax({
|
||||
method:'get',
|
||||
datatype: 'json',
|
||||
url: api + '/api/listpenebusanhistory/' + kodcaw,
|
||||
async:false,
|
||||
data: { 'norujukan' : norujukan },
|
||||
success:function(success_data){
|
||||
var count = Object.keys(success_data).length;
|
||||
|
||||
if(count > 0)
|
||||
{
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
|
||||
return false;
|
||||
event.preventDefault();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
let jenisbayarantebus = '';
|
||||
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user