ggwp
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
@section('content')
|
||||
<?php
|
||||
$customer_info = Session::get('customer_info');
|
||||
$belum_tebus = Session::get('belum_tebus');
|
||||
?>
|
||||
<div class="container">
|
||||
<div class="row justify-content-center">
|
||||
@@ -104,7 +103,7 @@
|
||||
var tablegadai = $('#myTable').DataTable();
|
||||
function gadaiTable(data){
|
||||
var counter = 1;
|
||||
tablegadai.clear();
|
||||
tablegadai.clear().draw();
|
||||
$.each(data,function(index,gadai){
|
||||
$.each(gadai, function(index,gadai_detail){
|
||||
tablegadai.row.add([
|
||||
@@ -114,7 +113,7 @@
|
||||
'RM '+ gadai_detail['pinjaman'].toLocaleString("en-GB"),
|
||||
'RM '+ gadai_detail['nilaimarhun'].toLocaleString("en-GB"),
|
||||
'0',
|
||||
'RM '+ ((gadai_detail['kadarupah']/100)*gadai_detail['pinjaman']*gadai_detail['tempoh'])
|
||||
'RM '+ parseFloat(((gadai_detail['kadarupah']/100)*gadai_detail['pinjaman']*gadai_detail['tempoh']).toLocaleString("en-GB")).toFixed(2)
|
||||
]).draw();
|
||||
|
||||
counter = counter + 1;
|
||||
@@ -136,7 +135,7 @@
|
||||
} );
|
||||
|
||||
function gadaiOptionButton(noic){
|
||||
tablegadai.clear();
|
||||
tablegadai.clear().draw();
|
||||
if($("input[name='options']:checked").val() == 'belum_tebus'){
|
||||
// console.log(noic);
|
||||
$.ajax({
|
||||
|
||||
@@ -6,13 +6,13 @@
|
||||
<div class="col-md-12">
|
||||
<h3 class="text-center text-uppercase">gadaian</h3>
|
||||
<div class="form-group row col-12">
|
||||
<div class="col-6">
|
||||
<div class="col-6">
|
||||
<div class="form-group row">
|
||||
<div class="col-4">
|
||||
Nama
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" name="name" id="name" readonly value="{{ $customer_info['nama'] }}">
|
||||
<input type="text" name="name" id="name" readonly value="{{ $customer_info['nama'] }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -32,7 +32,7 @@
|
||||
No Rujukan
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<input type="text" name="no_rujukan" id="no_rujukan" readonly value="">
|
||||
<input type="text" name="no_rujukan" id="no_rujukan" readonly value="{{ $norujukan }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user