Commit 33cd0610 by Azhan Hannan

revert auto verified pms -> bila tak ada hod pms

parent 4a534c31
......@@ -2043,30 +2043,30 @@ class DashboardController extends Controller
}
// overwrite status project - case -> en fairuz takda
$checkoverwrite = Tproject::where('tp_project_type', 1)
->where('fk_tm_id',$request->tid)
->first();
// $checkoverwrite = Tproject::where('tp_project_type', 1)
// ->where('fk_tm_id',$request->tid)
// ->first();
if($checkoverwrite)
{
Ts_master::where('id', $request->tid)
->update([
'tm_timesheet_master_sts' => 3,
'tm_verified_at' => today()->toDateString(),
]);
// if($checkoverwrite)
// {
// Ts_master::where('id', $request->tid)
// ->update([
// 'tm_timesheet_master_sts' => 3,
// 'tm_verified_at' => today()->toDateString(),
// ]);
Ts_detail::where('fk_tm_id', $request->tid)
->where('td_project_type', 1)
->update([ 'td_timesheet_sts' => 3 ]);
// Ts_detail::where('fk_tm_id', $request->tid)
// ->where('td_project_type', 1)
// ->update([ 'td_timesheet_sts' => 3 ]);
Tproject::where('fk_tm_id', $request->tid)
->where('tp_project_type', 1)
->update([
'tp_timesheet_sts' => 3,
'tp_verified_at' => today()->toDateString(),
'verifier_remark' => 'verified',
]);
}
// Tproject::where('fk_tm_id', $request->tid)
// ->where('tp_project_type', 1)
// ->update([
// 'tp_timesheet_sts' => 3,
// 'tp_verified_at' => today()->toDateString(),
// 'verifier_remark' => 'verified',
// ]);
// }
}
if( $roleid == '2' )
......
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