fix skit2
This commit is contained in:
@@ -896,6 +896,34 @@
|
||||
{
|
||||
$("#terima_transaksi").prop('disabled', true);
|
||||
if($('#sltjenistebus').find(":selected").val() == 'T'){
|
||||
|
||||
var adadah = false;
|
||||
|
||||
$.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)
|
||||
{
|
||||
console.log(count);
|
||||
Swal.fire('Amaran!','Tebus sudah dibuat sila tekan butang batal!','error');
|
||||
$("#terima_transaksi").prop('disabled', false);
|
||||
adadah = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if(adadah === true)
|
||||
{
|
||||
return false;
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
let jenisbayarantebus = '';
|
||||
if(hargajualan == '')
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user