Commit e98098f0 by Azhan Hannan

changes timesheet review for hod

parent 8d742d8e
......@@ -12,9 +12,9 @@
@foreach($profile as $key => $staff)
@if(data_get($staff,'status') == 2)
<?php
// $detail = $details->where('staffid', $staff->staff_id)->where('fk_tm_id', $staff->tmid)->where('tp_project_sts', 2);
$detail = $details->where('staffid', $staff->staff_id)->where('fk_tm_id', $staff->tmid);
// dump(count($detail));
// $detail = $details->where('staffid', $staff->staff_id)->where('fk_tm_id', $staff->tmid)->where('tp_timesheet_sts', 2);
$detail = $details->where('staffid', $staff->staff_id)->where('fk_tm_id', $staff->tmid)->where('tp_project_type', 3)->where('tp_timesheet_sts', 2);
// dump($detail);
$ts = $checkts->where('tm_staff_id', $staff->staff_id);
?>
......
......@@ -434,6 +434,8 @@ class DashboardController extends Controller
->where('tm_year', $curryear)
->where('tm_month', $month)
->where('tm_phase', $phase)
->where('overhead', '<>', null)
->where('status', 2)
->with('overheads')
->get();
// dd($profile);
......@@ -442,6 +444,7 @@ class DashboardController extends Controller
->where('tp_month', $request->month)
->where('tp_phase', $request->phase)
->where('tp_project_type', 3)
->where('tp_timesheet_sts', 2)
->where('tp_pm', $verifier->id)
->with('notes')
->get();
......
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