enable kadar anggota for all branches
This commit is contained in:
@@ -525,38 +525,36 @@ var api_url = @json($api_url ?? '');
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Logik amaran SweetAlert
|
// Logik amaran SweetAlert
|
||||||
if("{{ auth()->user()->cawangan }}" == 'X0301'){
|
if (search === true) {
|
||||||
if (search === true) {
|
if (blacklist_search === true) {
|
||||||
if (blacklist_search === true) {
|
Swal.fire({
|
||||||
Swal.fire({
|
icon: 'warning',
|
||||||
icon: 'warning',
|
title: 'Amaran!',
|
||||||
title: 'Amaran!',
|
text: 'Pelanggan telah disenarai hitamkan dari Pembiayaan.'
|
||||||
text: 'Pelanggan telah disenarai hitamkan dari Pembiayaan.'
|
});
|
||||||
});
|
}
|
||||||
}
|
else if (isAnggota && !isPelanggan) {
|
||||||
else if (isAnggota && !isPelanggan) {
|
Swal.fire({
|
||||||
Swal.fire({
|
icon: 'info',
|
||||||
icon: 'info',
|
title: 'Anggota Belum Didaftarkan!',
|
||||||
title: 'Anggota Belum Didaftarkan!',
|
text: 'Pelanggan ini adalah anggota koperasi tetapi belum berdaftar sebagai pelanggan.'
|
||||||
text: 'Pelanggan ini adalah anggota koperasi tetapi belum berdaftar sebagai pelanggan.'
|
});
|
||||||
});
|
}
|
||||||
}
|
else if (isPelanggan && !isAnggota) {
|
||||||
else if (isPelanggan && !isAnggota) {
|
Swal.fire({
|
||||||
Swal.fire({
|
icon: 'info',
|
||||||
icon: 'info',
|
title: 'Pelanggan Bukan Anggota!',
|
||||||
title: 'Pelanggan Bukan Anggota!',
|
text: 'Pelanggan ini berdaftar tetapi belum menjadi anggota koperasi.'
|
||||||
text: 'Pelanggan ini berdaftar tetapi belum menjadi anggota koperasi.'
|
});
|
||||||
});
|
}
|
||||||
}
|
else if (!isAnggota && !isPelanggan) {
|
||||||
else if (!isAnggota && !isPelanggan) {
|
Swal.fire({
|
||||||
Swal.fire({
|
icon: 'info',
|
||||||
icon: 'info',
|
title: 'Pelanggan Tiada Dalam Rekod!',
|
||||||
title: 'Pelanggan Tiada Dalam Rekod!',
|
text: 'Sila Daftar Pelanggan.'
|
||||||
text: 'Sila Daftar Pelanggan.'
|
});
|
||||||
});
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,8 @@
|
|||||||
->json();
|
->json();
|
||||||
@endphp
|
@endphp
|
||||||
<input type="text" class="form-control" name="outstanding_semasa"
|
<input type="text" class="form-control" name="outstanding_semasa"
|
||||||
id="outstanding_semasa" readonly value="{{ number_format($outstanding_semasa, 2) }}">
|
id="outstanding_semasa" readonly
|
||||||
|
value="{{ number_format($outstanding_semasa, 2) }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -157,7 +158,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- Butang Assign Sebagai Anggota -->
|
<!-- Butang Assign Sebagai Anggota -->
|
||||||
@if (isset($showAssignAnggotaBtn) && $showAssignAnggotaBtn && auth()->user()->cawangan == 'X0301')
|
@if (isset($showAssignAnggotaBtn) && $showAssignAnggotaBtn)
|
||||||
<div class="m-0 p-2">
|
<div class="m-0 p-2">
|
||||||
<button type="button" class="btn btn-success d-flex align-items-center"
|
<button type="button" class="btn btn-success d-flex align-items-center"
|
||||||
data-noic="{{ $noic }}" onclick="assignAnggota(this)">
|
data-noic="{{ $noic }}" onclick="assignAnggota(this)">
|
||||||
@@ -363,31 +364,31 @@
|
|||||||
data-toggle="tab" href="#nav-tawarruq" role="tab" aria-controls="nav-tawarruq"
|
data-toggle="tab" href="#nav-tawarruq" role="tab" aria-controls="nav-tawarruq"
|
||||||
aria-selected="{{ $aria_selected_SAG_baru }}">SAG Baru</a>
|
aria-selected="{{ $aria_selected_SAG_baru }}">SAG Baru</a>
|
||||||
<a class="nav-item nav-link {{ $activate_tab_SAG_lama }}" " id="nav-xtawarruq-tab" data-toggle="tab" href="#nav-xtawarruq" role="tab" aria-controls="nav-xtawarruq" aria-selected="{{ $aria_selected_SAG_lama }}"><span id="textnavsag">SAG Lama</span></a>
|
<a class="nav-item nav-link {{ $activate_tab_SAG_lama }}" " id="nav-xtawarruq-tab" data-toggle="tab" href="#nav-xtawarruq" role="tab" aria-controls="nav-xtawarruq" aria-selected="{{ $aria_selected_SAG_lama }}"><span id="textnavsag">SAG Lama</span></a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="tab-content" id="navtawarruqdannottawarruq">
|
<div class="tab-content" id="navtawarruqdannottawarruq">
|
||||||
<div class="tab-pane fade {{ $activate_pane_SAG_baru }}" id="nav-tawarruq" role="tabpanel" aria-labelledby="nav-tawarruq-tab">
|
<div class="tab-pane fade {{ $activate_pane_SAG_baru }}" id="nav-tawarruq" role="tabpanel" aria-labelledby="nav-tawarruq-tab">
|
||||||
<table class="table table-striped table-hover" id="myTable">
|
<table class="table table-striped table-hover" id="myTable">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Bil</th>
|
<th>Bil</th>
|
||||||
<th>No Rujukan</th>
|
<th>No Rujukan</th>
|
||||||
<th>Tarikh Pembiayaan</th>
|
<th>Tarikh Pembiayaan</th>
|
||||||
<th>Tarikh Matang</th>
|
<th>Tarikh Matang</th>
|
||||||
<th>Baki Harga Jualan</th>
|
<th>Baki Harga Jualan</th>
|
||||||
<th>Baki Pembiayaan</th>
|
<th>Baki Pembiayaan</th>
|
||||||
<th>Margin</th>
|
<th>Margin</th>
|
||||||
<th>Tempoh</th>
|
<th>Tempoh</th>
|
||||||
<th>Keuntungan</th>
|
<th>Keuntungan</th>
|
||||||
<th>Lelong</th>
|
<th>Lelong</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane fade {{ $activate_pane_SAG_lama }}" id="nav-xtawarruq" role="tabpanel" aria-labelledby="nav-xtawarruq-tab">
|
<div class="tab-pane fade {{ $activate_pane_SAG_lama }}" id="nav-xtawarruq" role="tabpanel" aria-labelledby="nav-xtawarruq-tab">
|
||||||
<table id="xtawarruq" class="table table-striped table-hover">
|
<table id="xtawarruq" class="table table-striped table-hover">
|
||||||
<thead class="thead-dark">
|
<thead class="thead-dark">
|
||||||
{{-- <tr>
|
{{-- <tr>
|
||||||
<th>Bil</th>
|
<th>Bil</th>
|
||||||
<th>No Rujukan</th>
|
<th>No Rujukan</th>
|
||||||
<th>Tarikh Gadai</th>
|
<th>Tarikh Gadai</th>
|
||||||
@@ -397,139 +398,139 @@
|
|||||||
<th>Tempoh</th>
|
<th>Tempoh</th>
|
||||||
<th>Lelong</th>
|
<th>Lelong</th>
|
||||||
</tr> --}}
|
</tr> --}}
|
||||||
<tr>
|
<tr>
|
||||||
<th>Bil</th>
|
<th>Bil</th>
|
||||||
<th>No Rujukan</th>
|
<th>No Rujukan</th>
|
||||||
<th>Tarikh Pembiayaan</th>
|
<th>Tarikh Pembiayaan</th>
|
||||||
<th>Tarikh Matang</th>
|
<th>Tarikh Matang</th>
|
||||||
<th>Baki Harga Jualan</th>
|
<th>Baki Harga Jualan</th>
|
||||||
<th>Baki Pembiayaan</th>
|
<th>Baki Pembiayaan</th>
|
||||||
<th>Margin</th>
|
<th>Margin</th>
|
||||||
<th>Tempoh</th>
|
<th>Tempoh</th>
|
||||||
<th>Keuntungan</th>
|
<th>Keuntungan</th>
|
||||||
<th>Lelong</th>
|
<th>Lelong</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{-- Sudah Tebus --}}
|
||||||
|
|
||||||
|
<table id="dahtebusTable" class="table table-striped table-hover">
|
||||||
|
<thead class="thead-dark">
|
||||||
|
<tr>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>No Rujukan</th>
|
||||||
|
<th>Tarikh Penyelesaian Pembiayaan</th>
|
||||||
|
<th>Baki Pembiayaan</th>
|
||||||
|
<th>Margin</th>
|
||||||
|
<th>Tempoh</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<table id="lelongTable" class="table table-striped table-hover">
|
||||||
|
<thead class="thead-dark">
|
||||||
|
<tr>
|
||||||
|
<th>Bil</th>
|
||||||
|
<th>No Rujukan</th>
|
||||||
|
<th>Tarikh Lelong</th>
|
||||||
|
<th>Tarikh Tuntut</th>
|
||||||
|
<th>Pembiayaan</th>
|
||||||
|
<th>Harga Jual</th>
|
||||||
|
<th>Jum Tuntut/Bayar</th>
|
||||||
|
<th>Keuntungan</th>
|
||||||
|
<th>Caj Lelong</th>
|
||||||
|
<th>Status Tuntutan</th>
|
||||||
|
<th>Cetak</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<div class="text-center">
|
||||||
|
<button class="btn btn-primary" onclick="ubahfunc(this)" id="button-edit-gadaian">Ubah</button>
|
||||||
|
<button class="btn btn-primary" onclick="hapusfunc()">Hapus</button>
|
||||||
|
<button class="btn btn-primary" onclick="histfunc()">Rekod Pembiayaan</button>
|
||||||
|
<button class="btn btn-primary" onclick="removeansuran(this)" id="button-remove-ansuran">Hapus Ansuran</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{-- Sudah Tebus --}}
|
|
||||||
|
|
||||||
<table id="dahtebusTable" class="table table-striped table-hover">
|
|
||||||
<thead class="thead-dark">
|
|
||||||
<tr>
|
|
||||||
<th>Bil</th>
|
|
||||||
<th>No Rujukan</th>
|
|
||||||
<th>Tarikh Penyelesaian Pembiayaan</th>
|
|
||||||
<th>Baki Pembiayaan</th>
|
|
||||||
<th>Margin</th>
|
|
||||||
<th>Tempoh</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<table id="lelongTable" class="table table-striped table-hover">
|
|
||||||
<thead class="thead-dark">
|
|
||||||
<tr>
|
|
||||||
<th>Bil</th>
|
|
||||||
<th>No Rujukan</th>
|
|
||||||
<th>Tarikh Lelong</th>
|
|
||||||
<th>Tarikh Tuntut</th>
|
|
||||||
<th>Pembiayaan</th>
|
|
||||||
<th>Harga Jual</th>
|
|
||||||
<th>Jum Tuntut/Bayar</th>
|
|
||||||
<th>Keuntungan</th>
|
|
||||||
<th>Caj Lelong</th>
|
|
||||||
<th>Status Tuntutan</th>
|
|
||||||
<th>Cetak</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<div class="text-center">
|
|
||||||
<button class="btn btn-primary" onclick="ubahfunc(this)" id="button-edit-gadaian">Ubah</button>
|
|
||||||
<button class="btn btn-primary" onclick="hapusfunc()">Hapus</button>
|
|
||||||
<button class="btn btn-primary" onclick="histfunc()">Rekod Pembiayaan</button>
|
|
||||||
<button class="btn btn-primary" onclick="removeansuran(this)" id="button-remove-ansuran">Hapus Ansuran</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Modal -->
|
<!-- Modal -->
|
||||||
<div class="modal fade" id="customer_detail" tabindex="-1" aria-labelledby="customer_detailLabel" aria-hidden="true">
|
<div class="modal fade" id="customer_detail" tabindex="-1" aria-labelledby="customer_detailLabel" aria-hidden="true">
|
||||||
<div class="modal-dialog modal-dialog-centered modal-xl">
|
<div class="modal-dialog modal-dialog-centered modal-xl">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h5 class="modal-title" id="customer_detailLabel">Maklumat Pelanggan</h5>
|
<h5 class="modal-title" id="customer_detailLabel">Maklumat Pelanggan</h5>
|
||||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||||
<span aria-hidden="true">×</span>
|
<span aria-hidden="true">×</span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<form id="kemaskiniform">
|
<form id="kemaskiniform">
|
||||||
<div class='row form-group'>
|
<div class='row form-group'>
|
||||||
<div class='col-md-6'>
|
<div class='col-md-6'>
|
||||||
<div class='form-group row col-md-12'>
|
<div class='form-group row col-md-12'>
|
||||||
<div class='col-md-5'>
|
<div class='col-md-5'>
|
||||||
Nama
|
Nama
|
||||||
|
</div>
|
||||||
|
<div class='col-md-7'>
|
||||||
|
<input type="text" readonly name='nama' id='nama' value="{{ $customer_info['nama'] }}" class='form-control'>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='form-group row col-md-12'>
|
||||||
<input type="text" readonly name='nama' id='nama' value="{{ $customer_info['nama'] }}" class='form-control'>
|
<div class='col-md-5'>
|
||||||
|
No KP
|
||||||
|
</div>
|
||||||
|
<div class='col-md-7'>
|
||||||
|
<input type="text" readonly name='icno' id='icno' value="{{ $customer_info['kpbaru'] ? $customer_info['kpbaru'] : $customer_info['kplama'] }}" class='form-control'>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class='form-group row col-md-12'>
|
||||||
<div class='form-group row col-md-12'>
|
<div class='col-md-5'>
|
||||||
<div class='col-md-5'>
|
No Pelanggan
|
||||||
No KP
|
</div>
|
||||||
|
<div class='col-md-7'>
|
||||||
|
<input type="text" readonly name='nopelanggan' id='nopelanggan' value="{{ $customer_info['nopelanggan'] }}" class='form-control'>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='form-group row col-md-12'>
|
||||||
<input type="text" readonly name='icno' id='icno' value="{{ $customer_info['kpbaru'] ? $customer_info['kpbaru'] : $customer_info['kplama'] }}" class='form-control'>
|
<div class='col-md-5'>
|
||||||
|
No Telefon 1
|
||||||
|
</div>
|
||||||
|
<div class='col-md-7'>
|
||||||
|
<input type="text" readonly name='' id='telefon' value="{{ $customer_info['telefon'] ? $customer_info['telefon'] : '' }}" class='form-control'>
|
||||||
|
<span id="errortelefon" style="color:red;"></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class='form-group row col-md-12'>
|
||||||
<div class='form-group row col-md-12'>
|
<div class='col-md-5'>
|
||||||
<div class='col-md-5'>
|
No Telefon 2
|
||||||
No Pelanggan
|
</div>
|
||||||
|
<div class='col-md-7'>
|
||||||
|
<input type="text" readonly name='telefon2' id='telefon2' value="{{ $customer_info['telefon2'] ? $customer_info['telefon2'] : '' }}" class='form-control'>
|
||||||
|
<span id="errortelefon2" style="color:red;"></span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='col-md-7'>
|
<div class='form-group row col-md-12'>
|
||||||
<input type="text" readonly name='nopelanggan' id='nopelanggan' value="{{ $customer_info['nopelanggan'] }}" class='form-control'>
|
<div class='col-md-5'>
|
||||||
</div>
|
Bank
|
||||||
</div>
|
</div>
|
||||||
<div class='form-group row col-md-12'>
|
<div class='col-md-7'>
|
||||||
<div class='col-md-5'>
|
@php
|
||||||
No Telefon 1
|
$bank = Http::withOptions(['verify' => config('app.api_verify')])
|
||||||
</div>
|
->get($api_url . '/api/bank')
|
||||||
<div class='col-md-7'>
|
->json();
|
||||||
<input type="text" readonly name='' id='telefon' value="{{ $customer_info['telefon'] ? $customer_info['telefon'] : '' }}" class='form-control'>
|
@endphp
|
||||||
<span id="errortelefon" style="color:red;"></span>
|
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
||||||
</div>
|
<option value="-" selected disabled>-</option>
|
||||||
</div>
|
@foreach ($bank as $banks)
|
||||||
<div class='form-group row col-md-12'>
|
|
||||||
<div class='col-md-5'>
|
|
||||||
No Telefon 2
|
|
||||||
</div>
|
|
||||||
<div class='col-md-7'>
|
|
||||||
<input type="text" readonly name='telefon2' id='telefon2' value="{{ $customer_info['telefon2'] ? $customer_info['telefon2'] : '' }}" class='form-control'>
|
|
||||||
<span id="errortelefon2" style="color:red;"></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class='form-group row col-md-12'>
|
|
||||||
<div class='col-md-5'>
|
|
||||||
Bank
|
|
||||||
</div>
|
|
||||||
<div class='col-md-7'>
|
|
||||||
@php
|
|
||||||
$bank = Http::withOptions(['verify' => config('app.api_verify')])
|
|
||||||
->get($api_url . '/api/bank')
|
|
||||||
->json();
|
|
||||||
@endphp
|
|
||||||
<select class="form-control" name="kodbank" data-placeholder="Pilih Bank" id="kodbank" disabled="true">
|
|
||||||
<option value="-" selected disabled>-</option>
|
|
||||||
@foreach ($bank as $banks)
|
|
||||||
<option value="{{ $banks['abbreviation'] }}"
|
<option value="{{ $banks['abbreviation'] }}"
|
||||||
{{ $banks['abbreviation'] == $customer_info['kodbank'] ? 'selected' : '' }}>
|
{{ $banks['abbreviation'] == $customer_info['kodbank'] ? 'selected' : '' }}>
|
||||||
{{ $banks['name'] }}</option>
|
{{ $banks['name'] }}</option>
|
||||||
@@ -971,7 +972,7 @@
|
|||||||
var channel = pusher.subscribe(
|
var channel = pusher.subscribe(
|
||||||
'notice-kelulusan');
|
'notice-kelulusan');
|
||||||
channel.bind('my-kelulusan', function(
|
channel.bind('my-kelulusan', function(
|
||||||
data) {
|
data) {
|
||||||
|
|
||||||
|
|
||||||
if (data.norujukan ==
|
if (data.norujukan ==
|
||||||
@@ -995,7 +996,7 @@
|
|||||||
},
|
},
|
||||||
success: function(
|
success: function(
|
||||||
data
|
data
|
||||||
) {
|
) {
|
||||||
location
|
location
|
||||||
.reload();
|
.reload();
|
||||||
|
|
||||||
@@ -1004,17 +1005,18 @@
|
|||||||
xhr,
|
xhr,
|
||||||
status,
|
status,
|
||||||
error
|
error
|
||||||
) {
|
) {
|
||||||
var err =
|
var err =
|
||||||
eval(
|
eval(
|
||||||
"(" +
|
"(" +
|
||||||
xhr
|
xhr
|
||||||
.responseText +
|
.responseText +
|
||||||
")"
|
")"
|
||||||
);
|
);
|
||||||
alert
|
alert
|
||||||
(xhr
|
(xhr
|
||||||
.responseText);
|
.responseText
|
||||||
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -1242,7 +1244,7 @@
|
|||||||
'RM ' + formatter.format(gadai_detail['bakipjm']),
|
'RM ' + formatter.format(gadai_detail['bakipjm']),
|
||||||
(((Number(gadai_detail['pinjaman']) / Number(gadai_detail[
|
(((Number(gadai_detail['pinjaman']) / Number(gadai_detail[
|
||||||
'nilaimarhun'])) * 100).toFixed(2)).toLocaleString(
|
'nilaimarhun'])) * 100).toFixed(2)).toLocaleString(
|
||||||
"en-GB") + '%',
|
"en-GB") + '%',
|
||||||
gadai_detail['tempoh']
|
gadai_detail['tempoh']
|
||||||
]).draw();
|
]).draw();
|
||||||
} else if (jenistebus == "lelong") {
|
} else if (jenistebus == "lelong") {
|
||||||
@@ -1273,7 +1275,7 @@
|
|||||||
'<a href="#" onclick="checktuntutbaki(this)" data-norujukan=' +
|
'<a href="#" onclick="checktuntutbaki(this)" data-norujukan=' +
|
||||||
gadai_detail['norujukan'] + ' data-tarikhtuntut=' +
|
gadai_detail['norujukan'] + ' data-tarikhtuntut=' +
|
||||||
gadai_detail['trkhtuntut'] + '>' + gadai_detail[
|
gadai_detail['trkhtuntut'] + '>' + gadai_detail[
|
||||||
'norujukan'] + '</a>',
|
'norujukan'] + '</a>',
|
||||||
gadai_detail['t_lelong'],
|
gadai_detail['t_lelong'],
|
||||||
gadai_detail['trkhtuntut'],
|
gadai_detail['trkhtuntut'],
|
||||||
'RM ' + formatter.format(gadai_detail['pinjaman']),
|
'RM ' + formatter.format(gadai_detail['pinjaman']),
|
||||||
@@ -1290,7 +1292,7 @@
|
|||||||
'<a href="#" onclick="checktuntutbaki(this)" data-norujukan=' +
|
'<a href="#" onclick="checktuntutbaki(this)" data-norujukan=' +
|
||||||
gadai_detail['norujukan'] + ' data-tarikhtuntut=' +
|
gadai_detail['norujukan'] + ' data-tarikhtuntut=' +
|
||||||
gadai_detail['trkhtuntut'] + '>' + gadai_detail[
|
gadai_detail['trkhtuntut'] + '>' + gadai_detail[
|
||||||
'norujukan'] + '</a>',
|
'norujukan'] + '</a>',
|
||||||
gadai_detail['t_lelong'],
|
gadai_detail['t_lelong'],
|
||||||
gadai_detail['trkhtuntut'],
|
gadai_detail['trkhtuntut'],
|
||||||
'RM ' + formatter.format(gadai_detail['pinjaman']),
|
'RM ' + formatter.format(gadai_detail['pinjaman']),
|
||||||
@@ -2164,10 +2166,10 @@
|
|||||||
cancelButtonText: 'Salah',
|
cancelButtonText: 'Salah',
|
||||||
reverseButtons: true
|
reverseButtons: true
|
||||||
}).then((
|
}).then((
|
||||||
result) => {
|
result) => {
|
||||||
if (result
|
if (result
|
||||||
.isConfirmed
|
.isConfirmed
|
||||||
) {
|
) {
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
method: 'put',
|
method: 'put',
|
||||||
@@ -2181,11 +2183,11 @@
|
|||||||
},
|
},
|
||||||
success: function(
|
success: function(
|
||||||
data
|
data
|
||||||
) {
|
) {
|
||||||
|
|
||||||
if (data ===
|
if (data ===
|
||||||
1
|
1
|
||||||
) {
|
) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
title: 'Berjaya!',
|
title: 'Berjaya!',
|
||||||
@@ -2220,7 +2222,7 @@
|
|||||||
Swal
|
Swal
|
||||||
.DismissReason
|
.DismissReason
|
||||||
.cancel
|
.cancel
|
||||||
) {
|
) {
|
||||||
PengesahanAkhirWakil
|
PengesahanAkhirWakil
|
||||||
.fire(
|
.fire(
|
||||||
'Batal',
|
'Batal',
|
||||||
@@ -2242,12 +2244,12 @@
|
|||||||
daftarwakilfunction
|
daftarwakilfunction
|
||||||
(amaun,
|
(amaun,
|
||||||
norujukan
|
norujukan
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(xhr, status,
|
error: function(xhr, status,
|
||||||
error) {
|
error) {
|
||||||
var err = eval("(" + xhr
|
var err = eval("(" + xhr
|
||||||
.responseText + ")");
|
.responseText + ")");
|
||||||
alert(xhr.responseText);
|
alert(xhr.responseText);
|
||||||
@@ -2479,7 +2481,7 @@
|
|||||||
success: function(data) {},
|
success: function(data) {},
|
||||||
error: function(xhr, status, error) {
|
error: function(xhr, status, error) {
|
||||||
var err = eval("(" + xhr.responseText +
|
var err = eval("(" + xhr.responseText +
|
||||||
")");
|
")");
|
||||||
alert(xhr.responseText);
|
alert(xhr.responseText);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -2527,7 +2529,7 @@
|
|||||||
location
|
location
|
||||||
.reload();
|
.reload();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
swalWithBootstrapButtons
|
swalWithBootstrapButtons
|
||||||
.fire(
|
.fire(
|
||||||
@@ -2540,7 +2542,7 @@
|
|||||||
location
|
location
|
||||||
.reload();
|
.reload();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2554,10 +2556,10 @@
|
|||||||
xhr
|
xhr
|
||||||
.responseText +
|
.responseText +
|
||||||
")"
|
")"
|
||||||
);
|
);
|
||||||
alert(xhr
|
alert(xhr
|
||||||
.responseText
|
.responseText
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
@@ -2716,10 +2718,10 @@
|
|||||||
'Maklumat Pembiayaan telah dihapuskan.',
|
'Maklumat Pembiayaan telah dihapuskan.',
|
||||||
'success'
|
'success'
|
||||||
).then(
|
).then(
|
||||||
function() {
|
function() {
|
||||||
location
|
location
|
||||||
.reload();
|
.reload();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user