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
40ef9676
Commit
40ef9676
authored
Jan 20, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tarikh verified_at dan approved_at
parent
008d775f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+5
-0
No files found.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
40ef9676
...
...
@@ -2660,6 +2660,7 @@ class DashboardController extends Controller
Ts_master
::
where
(
'id'
,
$tmid
)
->
update
([
'tm_timesheet_master_sts'
=>
4
,
'tm_approved_at'
=>
today
()
->
toDateString
()
,
]);
}
...
...
@@ -3089,6 +3090,7 @@ class DashboardController extends Controller
Ts_master
::
where
(
'id'
,
data_get
(
$request
,
'tmid'
))
->
update
([
'tm_timesheet_master_sts'
=>
4
,
'tm_approved_at'
=>
today
()
->
toDateString
(),
]);
}
return
redirect
()
->
route
(
'timesheet::dashboard.index'
)
->
withSuccess
(
'The projects has been approved successfully'
);
...
...
@@ -3482,6 +3484,7 @@ class DashboardController extends Controller
Ts_master
::
where
(
'id'
,
$tmid
)
->
update
([
'tm_timesheet_master_sts'
=>
3
,
'tm_verified_at'
=>
today
()
->
toDateString
(),
]);
}
...
...
@@ -4101,6 +4104,7 @@ class DashboardController extends Controller
public
function
verificationall
(
Request
$request
)
{
// dd($request);
// dd(today()->toDateString());
$user
=
Staff_info
::
where
(
'id'
,
Auth
::
id
())
->
first
();
if
(
data_get
(
$request
,
'action'
)
==
2
&&
data_get
(
$request
,
'remarks'
)
==
null
)
{
...
...
@@ -4178,6 +4182,7 @@ class DashboardController extends Controller
Ts_master
::
where
(
'id'
,
data_get
(
$request
,
'tmid'
))
->
update
([
'tm_timesheet_master_sts'
=>
3
,
'tm_verified_at'
=>
today
()
->
toDateString
(),
]);
}
return
redirect
()
->
route
(
'timesheet::dashboard.index'
)
->
withSuccess
(
'The projects has been approved successfully'
);
...
...
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