diff --git a/resources/views/customers/info.blade.php b/resources/views/customers/info.blade.php index 5ebbfe0..6ce99cd 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({