DONE: remove duplicated function in customer info blade
This commit is contained in:
@@ -725,14 +725,6 @@
|
|||||||
var icbaru = "{{ $customer_info['kpbaru'] }}";
|
var icbaru = "{{ $customer_info['kpbaru'] }}";
|
||||||
var outstanding_semasa = "{{ $outstanding_semasa }}";
|
var outstanding_semasa = "{{ $outstanding_semasa }}";
|
||||||
event.preventDefault();
|
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) {
|
if (outstanding_semasa >= 300000) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
@@ -780,7 +772,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
|
$('a[data-toggle="tab"]').on('shown.bs.tab', function(e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user