fix skit2

This commit is contained in:
MUHD HAFIFIE
2021-05-24 16:59:58 +08:00
parent dd0ca831da
commit 0e977ecb62
15 changed files with 306 additions and 101 deletions
+28
View File
@@ -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 == '')
{