fix skit bug

This commit is contained in:
hafifierahman
2021-11-02 01:15:59 +08:00
parent 0044a0bc57
commit dd4954b9c2
13 changed files with 254 additions and 81 deletions
+25 -8
View File
@@ -459,6 +459,10 @@
"ordering": false
});
var bayaranupah = $('#tablehistoryupah').DataTable({
"ordering": false
});
const formatter = new Intl.NumberFormat('en-US', {
minimumFractionDigits: 2
});
@@ -559,7 +563,20 @@
function checkAGH()
{
$('AGHModalEdit').hide();
$('#AGHModalEdit').modal('hide');
var daerahagh = $('#daerahagh').val();
if(daerahagh == 'No-Data')
{
$('#errordaerah').addClass('visible');
$('#errordaerah').removeClass('invisible');
return false;
}else{
$('#errordaerah').addClass('invisible');
$('#errordaerah').removeClass('visible');
return true;
}
}
function checktuntutbaki(e)
@@ -624,7 +641,7 @@
}else{
$.ajax({
method:'get',
url:'{{ route("gadai.history") }}',
url:'{{ route("gadai.history.khazanah") }}',
data:{ "norujukan" : histid},
success:function(data)
{
@@ -874,7 +891,7 @@
historybayarandatatable.clear().draw();
$.each(data,function(index,bayaran){
var urlroute = '{{ route("resit.ansuran", ":id") }}';
var urlroute = '{{ route("resit.khazanah.ansuran", ":id") }}';
urlroute = urlroute.replace(':id', bayaran['id']);
historybayarandatatable.row.add([
counter,
@@ -899,28 +916,28 @@
switch(tebusaz['jenistebus']) {
case 'P':
var urlroute = '{{ route("resit.tambahpinjam", ":id") }}';
var urlroute = '{{ route("resit.khazanah.tambahpinjam", ":id") }}';
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
break;
case 'T':
if(tebusaz['hargajualan'] === '')
{
var urlroute = '{{ route("resit.belumtebus", ":id") }}';
var urlroute = '{{ route("resit.khazanah.belumtebus", ":id") }}';
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
}else{
var urlroute = '{{ route("resit.tebus", ":id") }}';
var urlroute = '{{ route("resit.khazanah.tebus", ":id") }}';
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
}
break;
case 'A':
var urlroute = '{{ route("resit.belumansurans", ":id") }}';
var urlroute = '{{ route("resit.khazanah.belumansurans", ":id") }}';
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
break;
case 'S':
var urlroute = '{{ route("resit.tebusseparuh", ":id") }}';
var urlroute = '{{ route("resit.khazanah.tebusseparuh", ":id") }}';
urlroute = urlroute.replace(':id', tebusaz['norujukan']);
break;
}