Commit 77372461 by Azhan Hannan

PMHOD submit, tak update tarikh verified_at. dia jadi unix date.

parent 5ae502ad
......@@ -162,7 +162,6 @@ class DashboardController extends Controller
$checkts = Ts_master::whereIn('tm_timesheet_master_sts', [2,3,5,6])
->with('attachement')
->get();
return view('timesheet::dashboard.dashboardbod', compact('approval', 'profiles', 'detailsverification', 'checktd', 'profile', 'checkts', 'details'));
}
......@@ -1763,7 +1762,10 @@ class DashboardController extends Controller
if ($checkpmhod)
{
Ts_master::where('id', $request->tid)
->update([ 'tm_timesheet_master_sts' => 3 ]);
->update([
'tm_timesheet_master_sts' => 3,
'tm_verified_at' => today()->toDateString(),
]);
Ts_detail::where('fk_tm_id', $request->tid)
// ->where('td_project_type', 3)
......@@ -1780,7 +1782,10 @@ class DashboardController extends Controller
else
{
Ts_master::where('id', $request->tid)
->update([ 'tm_timesheet_master_sts' => 3 ]);
->update([
'tm_timesheet_master_sts' => 3,
'tm_verified_at' => today()->toDateString(),
]);
Ts_detail::where('fk_tm_id', $request->tid)
// ->where('td_project_type', 3)
......@@ -1798,7 +1803,10 @@ class DashboardController extends Controller
if( ($roleid != ('9'||'2'||'8')) && (data_get($user,'penyokong') == '0') )
{
Ts_master::where('id', $request->tid)
->update([ 'tm_timesheet_master_sts' => 3 ]);
->update([
'tm_timesheet_master_sts' => 3,
'tm_verified_at' => today()->toDateString(),
]);
Ts_detail::where('fk_tm_id', $request->tid)
->where('td_project_type', 3)
......
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