fix
This commit is contained in:
@@ -3630,8 +3630,10 @@ class AdminPageController extends Controller
|
|||||||
if($request->jenisgenerate == 'daily'){
|
if($request->jenisgenerate == 'daily'){
|
||||||
$date = $request->tarikh;
|
$date = $request->tarikh;
|
||||||
$res = $ringkasan->StoreRingkasanHarian($date,$date,$request->zone);
|
$res = $ringkasan->StoreRingkasanHarian($date,$date,$request->zone);
|
||||||
}else{
|
}else if($request->jenisgenerate == 'monthly'){
|
||||||
$res = $ringkasan->StoreRingkasanHarian($request->mula,$request->hingga,$request->zone);
|
$res = $ringkasan->StoreRingkasanHarian($request->mula,$request->hingga,$request->zone);
|
||||||
|
}else{
|
||||||
|
return response('error',400);
|
||||||
}
|
}
|
||||||
return response($res);
|
return response($res);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -458,8 +458,6 @@ class RingkasanHarianServices
|
|||||||
$lelong->caj_lelong = ($getLelong['cas_lelong']) ? $getLelong['cas_lelong'] : 0;
|
$lelong->caj_lelong = ($getLelong['cas_lelong']) ? $getLelong['cas_lelong'] : 0;
|
||||||
$lelong->bil_lelong = ($getLelong['bilangan']) ? $getLelong['bilangan'] : 0;
|
$lelong->bil_lelong = ($getLelong['bilangan']) ? $getLelong['bilangan'] : 0;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!$condition){
|
if(!$condition){
|
||||||
$main->gadai()->save($gadai);
|
$main->gadai()->save($gadai);
|
||||||
$main->ansuran()->save($ansuran);
|
$main->ansuran()->save($ansuran);
|
||||||
@@ -478,9 +476,6 @@ class RingkasanHarianServices
|
|||||||
}
|
}
|
||||||
$main->save();
|
$main->save();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DB::connection($caw['mysql'])->commit();
|
DB::connection($caw['mysql'])->commit();
|
||||||
}catch (\Exception $e) {
|
}catch (\Exception $e) {
|
||||||
dd($e);
|
dd($e);
|
||||||
|
|||||||
Reference in New Issue
Block a user