fixes of kelulusan and resit and marhun and notifikasi

This commit is contained in:
hafifierahman
2021-01-14 08:48:25 +08:00
parent a32deccf82
commit f6de532b78
16 changed files with 1162 additions and 87 deletions
+14 -9
View File
@@ -53,6 +53,7 @@
<thead>
<tr>
<th>Bil</th>
<th>Recno</th>
<th>Marhun</th>
<th>Nilai Marhun</th>
<th>Karat</th>
@@ -103,7 +104,7 @@
Pembiayaan
</div>
<div class="col-7 input-group">
<input type="text" class="form-control" name="pinjaman" id="pinjaman">
<input type="text" class="form-control" name="pinjaman" value="{{ $gadaiannorujukan['pinjaman'] }}" id="pinjaman">
<div class="input-group-append">
<span class="input-group-text span-pinjaman">0 %</span>
</div>
@@ -230,8 +231,6 @@
<script>
var api_url = "<?php echo $api_url ?>";
$('#pinjaman').val(parseFloat("{{ $gadaiannorujukan['pinjaman'] }}"));
function disableF5(e) { if ((e.which || e.keyCode) == 116) e.preventDefault(); };
$(document).ready( function () {
$(document).on("keydown", disableF5);
@@ -309,7 +308,14 @@
}
var tablemarhun = $('#myTable').DataTable({
"ordering": false
"ordering": false,
"columnDefs": [
{
"targets": [ 1 ],
"visible": false,
"searchable": false
}
]
});
$(".select2").select2({
@@ -389,7 +395,7 @@
function deletemarhun(e)
{
let marhun = $(e).closest('tr').children('td:eq(1)').text();
let marhun = $(e).closest('tr').children('td:eq(1)').text();let selectedrow = $(e).closest('tr');let recnozz = tablemarhun.row(selectedrow).data();
let norujuk = $('#norujukan').val();
$.ajax({
@@ -398,7 +404,7 @@
data: {
"_token": "{{ csrf_token() }}",
"norujukan" : norujuk,
"marhun" : marhun
"recno" : recnozz[1]
},
success:function(data)
{
@@ -413,11 +419,10 @@
function editmarhun(e)
{
let marhun = $(e).closest('tr').children('td:eq(1)').text();
let norujuk = $('#norujukan').val();
let norujuk = $('#norujukan').val();let selectedrow = $(e).closest('tr');let recno = tablemarhun.row(selectedrow).data();
$('#norujukedit').val(norujuk);
$('#valmarhun').val(marhun);
$('#recno').val(recno[1]);
$('#editMarhunModal').modal();
}