diff --git a/resources/views/customers/info.blade.php b/resources/views/customers/info.blade.php index b34f6c9..5ebbfe0 100644 --- a/resources/views/customers/info.blade.php +++ b/resources/views/customers/info.blade.php @@ -806,14 +806,14 @@ let test = $('input[name="sudahtebus"]:checked').closest('tr').children('td:eq(2)').text(); let tarikhgadai1 = new Date(test);tarikhgadai1.setHours(0, 0, 0, 0); - if(+harini !== +tarikhgadai1){ - Swal.fire({ - icon: 'error', - title: 'Amaran', - text: 'Hapus Gadai Tidak Dibenarkan' - }); - return false; - } + // if(+harini !== +tarikhgadai1){ + // Swal.fire({ + // icon: 'error', + // title: 'Amaran', + // text: 'Hapus Gadai Tidak Dibenarkan' + // }); + // return false; + // } } const swalWithBootstrapButtons = Swal.mixin({ @@ -932,9 +932,10 @@ location.reload(); }); }else{ + clearInterval(timerInterval); swalWithBootstrapButtons.fire( 'Amaran!', - 'Hapus Gadai Tidak Dibenarkan', + 'Hapus Tebus Tidak Dibenarkan, Hanya untuk tebus sahaja!', 'error' ) }