Commit 33cd0610 by Azhan Hannan

revert auto verified pms -> bila tak ada hod pms

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