Commit b1a8cf75 by Azhan Hannan

Staff pms, overhead akan auto-verified. (ubah code), Staff pms, sekiranya dia…

Staff pms, overhead akan auto-verified. (ubah code), Staff pms, sekiranya dia pm, project auto-verified. (ubah code)
parent 918bd551
......@@ -2042,8 +2042,33 @@ 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();
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 ]);
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' )
{
$checkhod = Tproject::where('tp_project_type', 1)
......
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