Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
3
3f-timesheet
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dockers
3f-timesheet
Commits
77372461
Commit
77372461
authored
Dec 22, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PMHOD submit, tak update tarikh verified_at. dia jadi unix date.
parent
5ae502ad
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+12
-4
No files found.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
77372461
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment