Commit c4cfdd81 by Azhan Hannan

fixing timesheet user

parent 7aaf6e4a
...@@ -32,7 +32,10 @@ class FormController extends Controller ...@@ -32,7 +32,10 @@ class FormController extends Controller
{ {
public function filterChargeable() public function filterChargeable()
{ {
$user = Staff_info::where('id', Auth::id())->first(); $TblUser = Users::where('id', Auth::id())->first()->u_staffID;
$user = Staff_info::where('staff_id', $TblUser)->first();
// dd($user); // dd($user);
$currmonth = date('n'); $currmonth = date('n');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment