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
b2bee6b4
Commit
b2bee6b4
authored
Jan 16, 2024
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing timesheet order by year desc
parent
e7bd2b48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+3
-3
No files found.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
b2bee6b4
...
@@ -94,7 +94,7 @@ class DashboardController extends Controller
...
@@ -94,7 +94,7 @@ class DashboardController extends Controller
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
])
->
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
])
// ->orderby('tm_year
')
->
orderby
(
'tm_year'
,
'DESC
'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
get
();
->
get
();
...
@@ -227,7 +227,7 @@ class DashboardController extends Controller
...
@@ -227,7 +227,7 @@ class DashboardController extends Controller
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
])
->
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
])
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_year'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
get
();
->
get
();
...
@@ -310,7 +310,7 @@ class DashboardController extends Controller
...
@@ -310,7 +310,7 @@ class DashboardController extends Controller
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
])
->
whereIn
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
])
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_year'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
get
();
->
get
();
...
...
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