fix lelongan
This commit is contained in:
@@ -253,10 +253,7 @@
|
||||
Baki Lelong
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
@php
|
||||
$limit_pinjaman_semasa = 0;
|
||||
@endphp
|
||||
<input type="text" class="form-control" name="limit_pinjaman" id="limit_pinjaman" readonly value="{{ number_format($bakilelong,2) }}">
|
||||
<input type="text" class="form-control" name="bakilelong" id="bakilelong" readonly value="{{ number_format($bakilelong,2) }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -287,7 +284,7 @@
|
||||
Rugi Lelong
|
||||
</div>
|
||||
<div class="col-md-8">
|
||||
<input type="text" class="form-control" name="limit_pinjaman" id="limit_pinjaman" readonly value="{{ number_format($rugilelong,2) }}">
|
||||
<input type="text" class="form-control" name="rugilelong" id="rugilelong" readonly value="{{ number_format($rugilelong,2) }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
NO RUJUKAN
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" value="{{ $gadai['norujukan'] }}" class="form-control" readonly/>
|
||||
<input type="text" id="norujukan" value="{{ $gadai['norujukan'] }}" class="form-control" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -54,12 +54,12 @@
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input type="radio" class="custom-control-input" id="radbakilelong" name="radlelong" value="baki">
|
||||
<label class="custom-control-label" for="radbakilelong">Baki Lelong</label>
|
||||
<input type="radio" class="custom-control-input" id="radbakilelong" name="radlelong" value="baki" disabled>
|
||||
<label class="custom-control-label" style="color:green;" for="radbakilelong" >Baki Lelong</label>
|
||||
</div>
|
||||
<div class="custom-control custom-radio custom-control-inline">
|
||||
<input type="radio" class="custom-control-input" id="radrugilelong" name="radlelong" value="rugi">
|
||||
<label class="custom-control-label" for="radrugilelong">Rugi Lelong</label>
|
||||
<input type="radio" class="custom-control-input" id="radrugilelong" name="radlelong" value="rugi" disabled>
|
||||
<label class="custom-control-label" style="color:red;" for="radrugilelong" >Rugi Lelong</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -158,7 +158,7 @@
|
||||
JUMLAH (RM)
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" value="{{ number_format($lelong['baki'],2) }}" class="form-control" readonly/>
|
||||
<input type="text" value="{{ number_format($lelong['baki'],2) }}" id="jumlah" class="form-control" readonly/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
|
||||
<div class="col-12 mt-3">
|
||||
<input type="button" class="float-right btn btn-danger mr-2" value="BATAL" onclick="window.location.replace('{{ route('customer_info') }}')">
|
||||
<input type="button" id="terima_transaksi" class="float-right btn btn-primary mr-2" value="TERIMA">
|
||||
<input type="button" id="terima_transaksi" class="float-right btn btn-primary mr-2" value="TERIMA" onclick="bayarantuntubaki()">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -182,4 +182,32 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
let jumlahbaki = parseFloat($('#jumlah').val().replace(/[^0-9.-]+/g,""));
|
||||
|
||||
if(jumlahbaki > 0)
|
||||
{
|
||||
$("#radbakilelong").prop("checked", true);
|
||||
$("#radrugilelong").prop("checked", false);
|
||||
}else{
|
||||
$("#radbakilelong").prop("checked", false);
|
||||
$("#radrugilelong").prop("checked", true);
|
||||
}
|
||||
});
|
||||
|
||||
function bayarantuntubaki()
|
||||
{
|
||||
let norujukan = $('#norujukan').val();
|
||||
|
||||
console.log(norujukan);
|
||||
|
||||
let urlroute = '{{ route("resit.tuntutbaki", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', norujukan);
|
||||
|
||||
window.open(urlroute, '_blank');
|
||||
}
|
||||
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,288 @@
|
||||
<style>
|
||||
#header {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#header td, #customers th {
|
||||
|
||||
padding:4px;
|
||||
font-size:10px;
|
||||
}
|
||||
|
||||
#header tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#header tr:hover {background-color: #ddd;}
|
||||
|
||||
#header th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:11px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<style>
|
||||
#scan {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#scan td, #scan th {
|
||||
border-collapse: collapse;
|
||||
padding: 8px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
#scan tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#scan tr:hover {background-color: #ddd;}
|
||||
|
||||
#scan th {
|
||||
border-collapse: collapse;
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
<style>
|
||||
#details {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#details td, #details th {
|
||||
|
||||
padding: 20px;
|
||||
font-size:12px;
|
||||
}
|
||||
|
||||
#details tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#details tr:hover {background-color: #ddd;}
|
||||
|
||||
#details th {
|
||||
padding-top: 15px;
|
||||
font-style:bold;
|
||||
padding-bottom: 15px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<style>
|
||||
#sign {
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#sign td, #sign th {
|
||||
|
||||
padding: 8px;
|
||||
font-size:12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#sign tr:nth-child(even){background-color: #ffffff;}
|
||||
|
||||
#sign tr:hover {background-color: #ddd;}
|
||||
|
||||
#sign th {
|
||||
padding-top: 12px;
|
||||
padding-bottom: 12px;
|
||||
text-align: left;
|
||||
padding:4px;
|
||||
color:black;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table id="header">
|
||||
<tr>
|
||||
<th rowspan="4" style="width:50px"><br><img src="{{ asset('img/ARRAHN1.png') }}" style="width:70px"></img></th>
|
||||
<th colspan="1">KOPERASI PERMODALAN KELANTAN BERHAD</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['namacaw'] }}</td>
|
||||
<td><b style="font-size:14px;font-weight:bold;">TAX INVOICE</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat1'] }}</td>
|
||||
<td>No Resit : <span></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{ $cawangan_detail['alamat2']}}</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td>{{ ' No Tel : '. $cawangan_detail['notel'].' No Faks : '. $cawangan_detail['nofaks'] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
|
||||
|
||||
<table id="scan">
|
||||
<tr>
|
||||
<td>Batch No Lelongan : <span></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Tarikh Lelongan : <span></span></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan ="5"><b><u>RESIT BAYARAN LEBIHAN LELONGAN</u></b></th>
|
||||
<th> </th>
|
||||
<th> </th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="details" style="width:70%;border:1px solid black;">
|
||||
<tr>
|
||||
<th>No Rujukan Surat Gadai</th>
|
||||
<th>012334</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Nama Pemilik</th>
|
||||
<th>Siti Aminah</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>No K/P</th>
|
||||
<th>892322232</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tarikh</th>
|
||||
<th>03-12-2020</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr style="border-top:1px solid black;">
|
||||
<th>Nama wakil</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr style="border-bottom:1px solid black;">
|
||||
<th>No K/P</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Harga Lelongan</th>
|
||||
<th>1,930.00</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Pembiayaan</th>
|
||||
<th>1,200.00</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Baki Keuntungan</th>
|
||||
<th>198.00</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Caj Lelong</th>
|
||||
<th>57.90</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Lebihan Lelongan</th>
|
||||
<th>4474.10</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Jumlah Bayaran</th>
|
||||
<th><b>RM 474.10</b></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
|
||||
<table id="details">
|
||||
<td>Nota: Pastikan No Kad Pengenalan Surat Akuan Gadaian dan Tandatangan. Sila ambil cop sekiranya surat gadai hilang/tidak dibawa manakala wakil diminta Tandatangan dan Cop Jari.</td>
|
||||
</table>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
<table id="sign">
|
||||
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"> .................................................................. </td>
|
||||
<td> </td>
|
||||
<td colspan="2">.................................................................. </td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td colspan="2"><b> Tandatangan Pelanggan</b> </td>
|
||||
<td> </td>
|
||||
<td colspan="2"><b> Penandatangan Berkuasa </b></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user