fix skit2

This commit is contained in:
MUHD HAFIFIE
2021-08-16 17:00:58 +08:00
parent 45dddaa8e5
commit 4383fd4781
3 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ class KelulusanController extends Controller
}
}
else
else if($pengesahan == 'operasi')
{
if($request->pembatalan == null)
{
+25
View File
@@ -511,4 +511,29 @@ class LelongController extends Controller
return response()->json($lelong,200);
}
public function checkSerahLelong(Request $request)
{
$current = Carbon::now();
$current = new Carbon();
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$request->kodcaw)->first();
$lelong = Lelong::on($cawangan['mysql'])
->where('norujukan', '=', $request->norujukan)
->where('t_lelong', '=', $current->toDateString())
->first();
if($lelong)
{
if($lelong['lel1stop'] == 1)
{
return response(1);
}else{
return response(0);
}
}else{
return response(0);
}
}
}