buka ansuran sag lama
This commit is contained in:
@@ -88,7 +88,8 @@ class PenebusanController extends Controller
|
|||||||
'teller' => $request->teller,
|
'teller' => $request->teller,
|
||||||
'nowakil' => $request->nowakil,
|
'nowakil' => $request->nowakil,
|
||||||
'duitpelanggan' => $request->duitpelanggan,
|
'duitpelanggan' => $request->duitpelanggan,
|
||||||
'bakipelanggan' => $request->bakipelanggan
|
'bakipelanggan' => $request->bakipelanggan,
|
||||||
|
'jeniskeuntungan' => $request->jeniskeuntungan
|
||||||
])->json();
|
])->json();
|
||||||
|
|
||||||
if($updategadai == 'success')
|
if($updategadai == 'success')
|
||||||
|
|||||||
@@ -67,15 +67,11 @@
|
|||||||
<div class="col-8">
|
<div class="col-8">
|
||||||
<select class="form-control" id="sltjenistebus">
|
<select class="form-control" id="sltjenistebus">
|
||||||
<option value="T">T = Tebus</option>
|
<option value="T">T = Tebus</option>
|
||||||
@if($gadai['tagbaru'] != 0)
|
|
||||||
<option value="A" {{ $gadai['tempoh'] >= 12 ? 'disabled' : '' }}>A = Ansuran</option>
|
<option value="A" {{ $gadai['tempoh'] >= 12 ? 'disabled' : '' }}>A = Ansuran</option>
|
||||||
{{-- <option value="S">S = Separuh</option> --}}
|
{{-- <option value="S">S = Separuh</option> --}}
|
||||||
{{-- <option value="P">P = Tambah Pembiayaan</option> --}}
|
{{-- <option value="P">P = Tambah Pembiayaan</option> --}}
|
||||||
<option value="AT">PS = Pembiayaan Semula</option>
|
|
||||||
@else
|
|
||||||
{{-- @if($gadai['tagbaru'] == 0) --}}
|
{{-- @if($gadai['tagbaru'] == 0) --}}
|
||||||
<option value="AT">PS = Pembiayaan Semula</option>
|
<option value="AT">PS = Pembiayaan Semula</option>
|
||||||
@endif
|
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -1451,6 +1447,8 @@
|
|||||||
|
|
||||||
|
|
||||||
let jenisbayarantebus = '';
|
let jenisbayarantebus = '';
|
||||||
|
let jeniskeuntungan = (tagbaru == 1) ? 'onepercent' : 'asal';
|
||||||
|
|
||||||
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
|
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
|
||||||
|
|
||||||
var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2));
|
var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2));
|
||||||
@@ -1498,7 +1496,8 @@
|
|||||||
"teller" : teller,
|
"teller" : teller,
|
||||||
"nowakil" : nw,
|
"nowakil" : nw,
|
||||||
"duitpelanggan" : duitpelanggan,
|
"duitpelanggan" : duitpelanggan,
|
||||||
"bakipelanggan" : bakipelanggan
|
"bakipelanggan" : bakipelanggan,
|
||||||
|
"jeniskeuntungan" : jeniskeuntungan
|
||||||
},
|
},
|
||||||
success:function(success_data){
|
success:function(success_data){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user