change ui
This commit is contained in:
@@ -193,7 +193,7 @@
|
||||
</div>
|
||||
<div class="col-4">
|
||||
@php
|
||||
$maxgadai = ($gadai['nilaimarhun'] * 0.8) - $gadai['bakipjm'];
|
||||
$maxgadai = ($gadai['nilaimarhun'] * 0.7) - $gadai['bakipjm'];
|
||||
|
||||
@endphp
|
||||
<input type="text" id="tambahpinjamsebenar" placeholder="0.00" value="{{ $maxgadai }}" class="form-control" disabled/>
|
||||
@@ -566,6 +566,7 @@ $("#sltjenistebus").change(function(){
|
||||
$('span.spannar').show();
|
||||
|
||||
$("#bayaran").prop("disabled", false);
|
||||
$("#perludibayar").prop("readonly", true);
|
||||
$("#bayaran").val(0);
|
||||
|
||||
$('#divtambahpinjaman').hide();
|
||||
@@ -625,11 +626,7 @@ $("#sltjenistebus").change(function(){
|
||||
|
||||
function bayarkey(e)
|
||||
{
|
||||
if($('#sltjenistebus').find(":selected").val() == 'A')
|
||||
{
|
||||
|
||||
}
|
||||
else if($('#sltjenistebus').find(":selected").val() == 'S')
|
||||
if($('#sltjenistebus').find(":selected").val() == 'S')
|
||||
{
|
||||
let byr = $(e).val();
|
||||
let total = 0;
|
||||
@@ -920,8 +917,6 @@ function bayaransemua()
|
||||
console.log("historygadaian:" + historygadaian + " " + "marhun:" + marhun + " " + "total_berat:" + total_berat + " " + "pinjaman:" + pinjaman + " ");
|
||||
console.log("marhun_detail: " + marhun_detail + "kuantiti_marhun: " + kuantiti_marhun);
|
||||
console.log(nowakil);
|
||||
|
||||
return;
|
||||
|
||||
var kadarupahbaru = 0;
|
||||
|
||||
@@ -971,12 +966,16 @@ function bayaransemua()
|
||||
|
||||
},
|
||||
success:function(success_data){
|
||||
var urlroute = '{{ route("resit.tebus", ":id") }}';
|
||||
urlroute = urlroute.replace(':id', norujukan);
|
||||
|
||||
console.log(success_data);
|
||||
Swal.fire(
|
||||
'Good job!',
|
||||
'You clicked the button!',
|
||||
'success'
|
||||
) .then(function() {
|
||||
window.open(urlroute, '_blank');
|
||||
window.location.replace("{{ url()->previous() }}");
|
||||
})
|
||||
},error: function (request, status, error) {
|
||||
|
||||
Reference in New Issue
Block a user