fix ansuran tak boleh and fix bayaran pelanggan cant null

This commit is contained in:
Hafifie PKB
2023-12-11 11:13:17 +08:00
parent 457c9269f1
commit cd86dfbae3
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -125,11 +125,11 @@ class PenebusanController extends Controller
'keluar' => $keluar,
'masuk' => $totalmasuk,
'bakiakhir' => $bakiakhir
]);
])->json();
event(new KeuntunganNotify('lulus',Auth::user()->cawangan));
return response()->json($updateTunai,200);
return response()->json($updategadai,200);
}else{
return response('error');
@@ -1422,6 +1422,8 @@
var duitpelanggan = parseFloat($('#duitPelanggan').val().replace(/[^0-9.-]+/g,""));
var bakipelanggan = parseFloat($('#bakiPelanggan').val().replace(/[^0-9.-]+/g,""));
if(isNaN(duitpelanggan)) duitpelanggan = 0;
if(duitpelanggan < bayar){
Swal.fire('Amaran!','Duit Pelanggan haruslah diisi melebihi perlu dibayar!','error');
$("#terima_transaksi").prop('disabled', false);