DONE: remove duplicated function in customer info blade
This commit is contained in:
@@ -718,21 +718,13 @@
|
|||||||
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
|
var kodcaw = "{{ $cawangan_info['kodcaw'] }}";
|
||||||
var tagarrahnbid = "{{ $cawangan_info['tagarrahnbid'] }}";
|
var tagarrahnbid = "{{ $cawangan_info['tagarrahnbid'] }}";
|
||||||
var min_komoditi = "{{ $min_komoditi }}";
|
var min_komoditi = "{{ $min_komoditi }}";
|
||||||
$('#daftar_gadai').on('click',function(){
|
$('#daftar_gadai').on('click', function() {
|
||||||
$("#daftar_gadai").prop('disabled', true);
|
$("#daftar_gadai").prop('disabled', true);
|
||||||
var noic = $('#noic').val();
|
var noic = $('#noic').val();
|
||||||
var iclama = "{{ $customer_info['kplama'] }}";
|
var iclama = "{{ $customer_info['kplama'] }}";
|
||||||
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