bug aliran
This commit is contained in:
@@ -186,7 +186,7 @@ class AliranTunaiController extends Controller
|
||||
if($tebus_detail['jenistebus'] == 'S')
|
||||
{
|
||||
$totalmasuk = $tebus_detail['pinjaman'] + $tebus_detail['bakiupah'] + $masuk;
|
||||
$bakiakhir = $bakiakhir + $tebus_detail['pinjaman'] + $tebus_detail['bakiupah'];
|
||||
$bakiakhir = $bakiakhir + $tebus_detail['bakipjm'];
|
||||
}else{
|
||||
$totalmasuk = $tebus_detail['bakipjm'] + $masuk;
|
||||
$bakiakhir = $bakiakhir + $tebus_detail['bakipjm'];
|
||||
|
||||
@@ -235,6 +235,7 @@
|
||||
'norujukan': norujukan
|
||||
},
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
if(data == 'true'){
|
||||
event.preventDefault();
|
||||
return false;
|
||||
|
||||
@@ -209,13 +209,14 @@ var table_gadaian_semasa = $('#table-gadaian-semasa').DataTable({
|
||||
'norujukan': norujukan
|
||||
},
|
||||
success:function(data){
|
||||
console.log(data);
|
||||
if(data == 'true'){
|
||||
event.preventDefault();
|
||||
return false;
|
||||
Swal.fire({
|
||||
icon: 'error',
|
||||
title: 'Amaran',
|
||||
text: 'Gadaian Sudah Scan'
|
||||
text: 'Penebusan Sudah Scan'
|
||||
});
|
||||
}else if(data == 'false'){
|
||||
$(func).attr("onSubmit","return true;");
|
||||
|
||||
Reference in New Issue
Block a user