buka ansuran sag lama

This commit is contained in:
Hafifie PKB
2023-12-30 23:49:24 +08:00
parent bca4a13ac7
commit 3f334f57b2
2 changed files with 6 additions and 6 deletions
+2 -1
View File
@@ -88,7 +88,8 @@ class PenebusanController extends Controller
'teller' => $request->teller,
'nowakil' => $request->nowakil,
'duitpelanggan' => $request->duitpelanggan,
'bakipelanggan' => $request->bakipelanggan
'bakipelanggan' => $request->bakipelanggan,
'jeniskeuntungan' => $request->jeniskeuntungan
])->json();
if($updategadai == 'success')
+4 -5
View File
@@ -67,15 +67,11 @@
<div class="col-8">
<select class="form-control" id="sltjenistebus">
<option value="T">T = Tebus</option>
@if($gadai['tagbaru'] != 0)
<option value="A" {{ $gadai['tempoh'] >= 12 ? 'disabled' : '' }}>A = Ansuran</option>
{{-- <option value="S">S = Separuh</option> --}}
{{-- <option value="P">P = Tambah Pembiayaan</option> --}}
<option value="AT">PS = Pembiayaan Semula</option>
@else
{{-- @if($gadai['tagbaru'] == 0) --}}
<option value="AT">PS = Pembiayaan Semula</option>
@endif
</select>
</div>
</div>
@@ -1451,6 +1447,8 @@
let jenisbayarantebus = '';
let jeniskeuntungan = (tagbaru == 1) ? 'onepercent' : 'asal';
let hadbayaransuran = (parseFloat("{{ $gadai['nilaimarhun']}}") * 0.1);
var bayar = Number(parseFloat($('#bayaran').val().replace(/[^0-9.-]+/g,"")).toFixed(2));
@@ -1498,7 +1496,8 @@
"teller" : teller,
"nowakil" : nw,
"duitpelanggan" : duitpelanggan,
"bakipelanggan" : bakipelanggan
"bakipelanggan" : bakipelanggan,
"jeniskeuntungan" : jeniskeuntungan
},
success:function(success_data){