fix apa yang patut
This commit is contained in:
@@ -150,7 +150,7 @@ class KhazanahController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||||
return view('khazanah.dashboard',compact('komuditicheck','cawangan_info','api_url','dashboard','totalmarhun','ringkasanharian','ringkasanterkumpul','getVault','keseluruhanupahharian','upahsimpan','keuntungan'));
|
return view('khazanah.dashboard',compact('komuditicheck','cawangan_info','api_url','dashboard','totalmarhun','ringkasanharian','getVault','keseluruhanupahharian','upahsimpan','keuntungan'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function alirantunai()
|
public function alirantunai()
|
||||||
@@ -443,7 +443,6 @@ class KhazanahController extends Controller
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
dd(request()->all());
|
|
||||||
|
|
||||||
if($tebus_detail['jenistebus'] == 'P')
|
if($tebus_detail['jenistebus'] == 'P')
|
||||||
{
|
{
|
||||||
@@ -697,8 +696,6 @@ class KhazanahController extends Controller
|
|||||||
$totalmasuk = $tebus_detail['bakipjm'] + $masuk;
|
$totalmasuk = $tebus_detail['bakipjm'] + $masuk;
|
||||||
// KIRAAN LEJER AM BERMULA UNYTUK PENEBUSAN JENIS 'T'
|
// KIRAAN LEJER AM BERMULA UNYTUK PENEBUSAN JENIS 'T'
|
||||||
|
|
||||||
dd($totalmasuk);
|
|
||||||
|
|
||||||
$get_GLCode_Tunai=Http::get(config('api.url').'/api/getGlCode/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
$get_GLCode_Tunai=Http::get(config('api.url').'/api/getGlCode/'.$auth_user['cawangan'],['glcode'=>$KOD_tunai])->json();
|
||||||
$keterangan_Tunai=$get_GLCode_Tunai[0]['descpt'];
|
$keterangan_Tunai=$get_GLCode_Tunai[0]['descpt'];
|
||||||
$acctype_Tunai=$get_GLCode_Tunai[0]['acttype'];
|
$acctype_Tunai=$get_GLCode_Tunai[0]['acttype'];
|
||||||
|
|||||||
@@ -10,6 +10,14 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
|
|
||||||
|
<nav aria-label="breadcrumb">
|
||||||
|
<ol class="breadcrumb pb-3">
|
||||||
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item active" aria-current="page">Pengenalan Diri</li>
|
||||||
|
</ol>
|
||||||
|
</nav>
|
||||||
|
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
<nav aria-label="breadcrumb">
|
<nav aria-label="breadcrumb">
|
||||||
<ol class="breadcrumb pb-3">
|
<ol class="breadcrumb pb-3">
|
||||||
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="{{ url('/pelanggan') }}">Pengenalan Diri</a></li>
|
||||||
<li class="breadcrumb-item active" aria-current="page">Pelanggan</li>
|
<li class="breadcrumb-item active" aria-current="page">Pelanggan</li>
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
@@ -44,19 +44,27 @@
|
|||||||
<th>No K/P</th>
|
<th>No K/P</th>
|
||||||
<th>No Rujukan</th>
|
<th>No Rujukan</th>
|
||||||
<th>Pembiayaan (RM)</th>
|
<th>Pembiayaan (RM)</th>
|
||||||
|
<th>Keuntungan (RM)</th>
|
||||||
<th>Nilai Marhun (RM)</th>
|
<th>Nilai Marhun (RM)</th>
|
||||||
<th>Berat (g)</th>
|
<th>Berat (g)</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
<tfoot class="thead-dark">
|
||||||
|
<th colspan="4">TOTAL</th>
|
||||||
|
<th id="pinjamantotal"></th>
|
||||||
|
<th id="upah12total"></th>
|
||||||
|
<th id="nmtotal"></th>
|
||||||
|
<th id="berattotal"></th>
|
||||||
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
{{-- <div class="row">
|
||||||
<div class="col-md-12 text-right">
|
<div class="col-md-12 text-right">
|
||||||
Bilangan Surat : <span id="bilangan_surat">3</span>
|
Bilangan Surat : <span id="bilangan_surat">3</span>
|
||||||
Jumlah Pinjaman : <span id="jumlah_pinjaman">RM 3,000.00</span>
|
Jumlah Pinjaman : <span id="jumlah_pinjaman">RM 3,000.00</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> --}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,6 +115,10 @@
|
|||||||
function gadaitable(data){
|
function gadaitable(data){
|
||||||
var counter = 1;
|
var counter = 1;
|
||||||
var total_pinjaman = 0;
|
var total_pinjaman = 0;
|
||||||
|
var total_upah12 = 0;
|
||||||
|
var total_nm = 0;
|
||||||
|
var total_berat = 0;
|
||||||
|
|
||||||
tablegadai.clear().draw();
|
tablegadai.clear().draw();
|
||||||
$.each(data,function(index,gadai){
|
$.each(data,function(index,gadai){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
@@ -114,17 +126,23 @@
|
|||||||
url:api_url + '/api/customers/' + gadai['nokp'],
|
url:api_url + '/api/customers/' + gadai['nokp'],
|
||||||
success:function(customer){
|
success:function(customer){
|
||||||
total_pinjaman += Number(gadai['pinjaman']);
|
total_pinjaman += Number(gadai['pinjaman']);
|
||||||
|
total_upah12 += Number(gadai['upah12']);
|
||||||
|
total_nm += Number(gadai['nilaimarhun']);
|
||||||
|
total_berat += Number(gadai['berat']);
|
||||||
tablegadai.row.add([
|
tablegadai.row.add([
|
||||||
counter,
|
counter,
|
||||||
customer[0]['nama'],
|
customer[0]['nama'],
|
||||||
gadai['nokp'],
|
gadai['nokp'],
|
||||||
gadai['norujukan'],
|
gadai['norujukan'],
|
||||||
gadai['pinjaman'],
|
formatter.format(gadai['pinjaman']),
|
||||||
gadai['nilaimarhun'],
|
formatter.format(gadai['upah12']),
|
||||||
gadai['berat']
|
formatter.format(gadai['nilaimarhun']),
|
||||||
|
formatter.format(gadai['berat'])
|
||||||
]).draw();
|
]).draw();
|
||||||
$('#bilangan_surat').text(counter);
|
$('#pinjamantotal').text(formatter.format(total_pinjaman.toFixed(2)));
|
||||||
$('#jumlah_pinjaman').text('RM '+ formatter.format(total_pinjaman.toFixed(2)));
|
$('#upah12total').text(formatter.format(total_upah12.toFixed(2)));
|
||||||
|
$('#nmtotal').text(formatter.format(total_nm.toFixed(2)));
|
||||||
|
$('#berattotal').text(formatter.format(total_berat.toFixed(2)));
|
||||||
counter = counter + 1;
|
counter = counter + 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<div id="app">
|
<div id="app">
|
||||||
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm" style="height:100px;">
|
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm" style="height:100px;">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="#">
|
<a class="navbar-brand" href="#" style="cursor:not-allowed;">
|
||||||
<img src="{{ asset('img/icon_pkb.png') }}" class="logo-arrahn-header" alt="Logo Ar Rahn" />
|
<img src="{{ asset('img/icon_pkb.png') }}" class="logo-arrahn-header" alt="Logo Ar Rahn" />
|
||||||
</a>
|
</a>
|
||||||
<div class="col-2">
|
<div class="col-2">
|
||||||
|
|||||||
@@ -71,7 +71,7 @@
|
|||||||
<div id="app">
|
<div id="app">
|
||||||
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm" style="height:100px;">
|
<nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm" style="height:100px;">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand" href="#">
|
<a class="navbar-brand" href="#" style="cursor:not-allowed;">
|
||||||
<img src="{{ asset('img/icon_pkb.png') }}" class="logo-arrahn-header" alt="Logo Ar Rahn" />
|
<img src="{{ asset('img/icon_pkb.png') }}" class="logo-arrahn-header" alt="Logo Ar Rahn" />
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|||||||
@@ -10,8 +10,9 @@
|
|||||||
|
|
||||||
<nav aria-label="breadcrumb">
|
<nav aria-label="breadcrumb">
|
||||||
<ol class="breadcrumb pb-3">
|
<ol class="breadcrumb pb-3">
|
||||||
<li class="breadcrumb-item"><a href="#">Home</a></li>
|
<li class="breadcrumb-item"><a href="#" style="cursor:not-allowed;">Home</a></li>
|
||||||
<li class="breadcrumb-item"><a href="#">Pelanggan</a></li>
|
<li class="breadcrumb-item"><a href="#" style="cursor:not-allowed;">Pengenalan Diri</a></li>
|
||||||
|
<li class="breadcrumb-item"><a href="#" style="cursor:not-allowed;">Pelanggan</a></li>
|
||||||
<li class="breadcrumb-item active" aria-current="page">Penebusan</li>
|
<li class="breadcrumb-item active" aria-current="page">Penebusan</li>
|
||||||
</ol>
|
</ol>
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user