tambah column tarikh pembayaran terakhir di arcc

This commit is contained in:
BTMS2
2024-10-22 10:35:54 +08:00
parent ad933ef7cd
commit a02b819676
+10 -1
View File
@@ -9,7 +9,7 @@
@section('content')
@include('modal.historytebus')
@include('modal.wakil')
<div class="container">
<div class="container-fluid">
<div class="row justify-content-center">
<div class="col-md-12 col-lg-12">
@@ -175,6 +175,7 @@
<th>Tempoh</th>
<th>Keuntungan</th>
<th>Lelong</th>
<th>Pembayaran Terakhir</th>
</tr>
</thead>
</table>
@@ -203,6 +204,7 @@
<th>Tempoh</th>
<th>Keuntungan</th>
<th>Lelong</th>
<th>Pembayaran Terakhir</th>
</tr>
</thead>
</table>
@@ -758,6 +760,7 @@
if(gadai_detail["tagbaru"] == 0){
$('#textnavsag').addClass('text-danger');
var taglel = '';
var lastbayar = '';
if(gadai_detail['taglel'] == 1){
if(tagarrahnbid == 1){
$.ajax({
@@ -767,6 +770,8 @@
success: function(data){
taglel = data.lelong.t_lelong;
console(taglel);
lastbayar = data.lelong.lastbayar;
}
});
} else {
@@ -800,9 +805,11 @@
gadai_detail['tempoh'],
'RM'+ upahsemasa,
'<div style="white-space: nowrap; color:red; font-weight: bolder">' + taglel + '</div>',
'<div style="white-space: nowrap; color:red; font-weight: bolder">' + lastbayar + '</div>',
]).draw();
}else{
var taglel = '';
var lastbayar = '';
if(gadai_detail['taglel'] == 1){
if(tagarrahnbid == 1){
$.ajax({
@@ -812,6 +819,7 @@
success: function(data){
taglel = data.lelong.t_lelong;
lastbayar = data.lelong.lastbayar;
}
});
} else {
@@ -843,6 +851,7 @@
gadai_detail['tempoh'],
'RM'+ formatter.format(upahsemasa['pendapatan']),
'<div style="white-space: nowrap; color:red; font-weight: bolder">' + taglel + '</div>',
'<div style="white-space: nowrap; color:red; font-weight: bolder">' + lastbayar + '</div>',
]).draw();
}
}else if(jenistebus == "sudah_tebus"){