add login role
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
<input type="hidden" name="kodcaw" id="kodcaw" value="{{$cawangan_info['kodcaw']}}">
|
||||
<input type="hidden" name="nokp" id="nokp" value="{{ $customer_info['kpbaru'] }}">
|
||||
<input type="hidden" name="jantina" id="jantina" value="{{ $customer_info['jantina'] }}">
|
||||
<input type="hidden" name="bangsa" id="bangsa" value="{{ $customer_info['bangsa'] }}">
|
||||
<div class="col-4">
|
||||
Nama
|
||||
</div>
|
||||
@@ -247,7 +246,7 @@
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url:'http://localhost:8000/api/jemas/'+ $('#kodcaw').val(),
|
||||
url:'http://localhost:8000/api/jemas',
|
||||
success:function(data){
|
||||
$.each(data,function(index,jemas){
|
||||
$("#marhun").append(new Option(jemas['descpt'], jemas['marhun']));
|
||||
@@ -362,10 +361,10 @@
|
||||
success:function(data){
|
||||
$.each(data,function(index,pinjaman){
|
||||
if(pinjaman['user_type'] == 'teller'){
|
||||
pinjaman_teller = pinjaman['max'];
|
||||
pinjaman_teller = Number(pinjaman['max']);
|
||||
}
|
||||
if(pinjaman['user_type'] == 'ppc'){
|
||||
pinjaman_pelulus = pinjaman['max'];
|
||||
pinjaman_pelulus = Number(pinjaman['max']);
|
||||
}
|
||||
});
|
||||
$('.span-pinjaman-max-pelulus').text(pinjaman_pelulus + ' %');
|
||||
@@ -375,10 +374,8 @@
|
||||
var max_teller = total_nilai_marhun * (pinjaman_teller/100);
|
||||
var max_pelulus = total_nilai_marhun * (pinjaman_pelulus/100);
|
||||
|
||||
|
||||
|
||||
$('#pinjaman_max_teller').val(formatter.format(max_teller.toFixed(2)));
|
||||
$('#pinjaman_max_pelulus').val(formatter.format(max_pelulus.toFixed(2)));
|
||||
$('#pinjaman_max_teller').val(max_teller.toFixed(2));
|
||||
$('#pinjaman_max_pelulus').val(max_pelulus.toFixed(2));
|
||||
}
|
||||
|
||||
$('#pinjaman').change(function(){
|
||||
@@ -395,7 +392,7 @@
|
||||
var upah_sebulan = pinjaman * kadarupah;
|
||||
var upah_6bln = upah_sebulan * 6;
|
||||
|
||||
percent_pinjaman = Number(pinjaman)/Number(total_nilai_marhun);
|
||||
percent_pinjaman = (Number(pinjaman)/Number(total_nilai_marhun))*100;
|
||||
|
||||
$('.span-pinjaman').text(percent_pinjaman.toFixed(2) + ' %');
|
||||
$('#upah_sebulan').val(formatter.format(upah_sebulan.toFixed(2)));
|
||||
|
||||
Reference in New Issue
Block a user