added penyelarasan and fix onepercent formula for lejeram
This commit is contained in:
@@ -1699,4 +1699,18 @@ class LaporanController extends Controller
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
public function getPenyelarasan($kodcaw,Request $request){
|
||||
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$response = Coordination::on($cawangan['mysql'])->where('tarikh',$request->tarikh)->first()->toArray();
|
||||
|
||||
if($response){
|
||||
return response()->json($response,200);
|
||||
}else{
|
||||
return response('notfound');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user