Commit b2bee6b4 by Azhan Hannan

fixing timesheet order by year desc

parent e7bd2b48
...@@ -94,7 +94,7 @@ class DashboardController extends Controller ...@@ -94,7 +94,7 @@ class DashboardController extends Controller
$timesheet = Ts_master::where('tm_staff_id', $staffid) $timesheet = Ts_master::where('tm_staff_id', $staffid)
->whereIn('tm_timesheet_master_sts', [2,3,5,6]) ->whereIn('tm_timesheet_master_sts', [2,3,5,6])
// ->orderby('tm_year') ->orderby('tm_year', 'DESC')
->orderby('tm_month', 'DESC') ->orderby('tm_month', 'DESC')
->orderby('tm_phase', 'DESC') ->orderby('tm_phase', 'DESC')
->get(); ->get();
...@@ -227,7 +227,7 @@ class DashboardController extends Controller ...@@ -227,7 +227,7 @@ class DashboardController extends Controller
$timesheet = Ts_master::where('tm_staff_id', $staffid) $timesheet = Ts_master::where('tm_staff_id', $staffid)
->whereIn('tm_timesheet_master_sts', [2,3,5,6]) ->whereIn('tm_timesheet_master_sts', [2,3,5,6])
->orderby('tm_year') ->orderby('tm_year', 'DESC')
->orderby('tm_month', 'DESC') ->orderby('tm_month', 'DESC')
->orderby('tm_phase', 'DESC') ->orderby('tm_phase', 'DESC')
->get(); ->get();
...@@ -310,7 +310,7 @@ class DashboardController extends Controller ...@@ -310,7 +310,7 @@ class DashboardController extends Controller
$timesheet = Ts_master::where('tm_staff_id', $staffid) $timesheet = Ts_master::where('tm_staff_id', $staffid)
->whereIn('tm_timesheet_master_sts', [2,3,5,6]) ->whereIn('tm_timesheet_master_sts', [2,3,5,6])
->orderby('tm_year') ->orderby('tm_year', 'DESC')
->orderby('tm_month', 'DESC') ->orderby('tm_month', 'DESC')
->orderby('tm_phase', 'DESC') ->orderby('tm_phase', 'DESC')
->get(); ->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