DONE: remove duplicated function in customer info blade

This commit is contained in:
ISMAIL MASSERAN
2026-08-27 11:56:29 +08:00
parent c37abbfb65
commit 86525d9559
+1 -10
View File
@@ -718,21 +718,13 @@
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
var tagarrahnbid = "{{ $cawangan_info['tagarrahnbid'] }}";
var min_komoditi = "{{ $min_komoditi }}";
$('#daftar_gadai').on('click',function(){
$('#daftar_gadai').on('click', function() {
$("#daftar_gadai").prop('disabled', true);
var noic = $('#noic').val();
var iclama = "{{ $customer_info['kplama'] }}";
var icbaru = "{{ $customer_info['kpbaru'] }}";
var outstanding_semasa = "{{ $outstanding_semasa }}";
event.preventDefault();
if(outstanding_semasa >= 300000){
Swal.fire({
icon: 'error',
title: 'Had Pembiayaan',
text: 'Outstanding Pembiayaan Pelanggan Telah Melebihi Had'
});
$("#daftar_gadai").prop('disabled', false);
event.preventDefault();
if (outstanding_semasa >= 300000) {
Swal.fire({
icon: 'error',
@@ -780,7 +772,6 @@
}
});
}
});
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e) {