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