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
2fb7abeb
Commit
2fb7abeb
authored
Jan 03, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard staff, pm, pmhod -> comment current year, display status 2,3,5,6
parent
48f027ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+16
-16
No files found.
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
2fb7abeb
...
@@ -184,9 +184,9 @@ class DashboardController extends Controller
...
@@ -184,9 +184,9 @@ class DashboardController extends Controller
->
get
();
->
get
();
// dd($profile);
// dd($profile);
$staffnotes
=
Tproject
::
where
(
'tp_project_type'
,
3
)
$staffnotes
=
Tproject
::
where
(
'tp_project_type'
,
3
)
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
In
(
'tp_timesheet_sts'
,
[
2
,
3
,
5
,
6
]
)
->
where
(
'staffid'
,
$verifier
->
u_staffID
)
->
where
(
'staffid'
,
$verifier
->
u_staffID
)
->
where
(
'tp_year'
,
date
(
'Y'
))
//
->where('tp_year', date('Y'))
->
with
(
'notes'
)
->
with
(
'notes'
)
->
get
();
->
get
();
...
@@ -205,15 +205,15 @@ class DashboardController extends Controller
...
@@ -205,15 +205,15 @@ class DashboardController extends Controller
->
u_staffID
;
->
u_staffID
;
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
where
(
'tm_timesheet_master_sts'
,
'<>'
,
1
)
->
where
In
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
]
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
get
();
->
get
();
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
->
where
(
'tp_year'
,
date
(
'Y'
))
//
->where('tp_year', date('Y'))
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
In
(
'tp_timesheet_sts'
,
[
2
,
3
,
5
,
6
]
)
->
with
(
'project'
)
->
with
(
'project'
)
->
with
(
'overhead'
)
->
with
(
'overhead'
)
->
with
(
'hod'
)
->
with
(
'hod'
)
...
@@ -239,9 +239,9 @@ class DashboardController extends Controller
...
@@ -239,9 +239,9 @@ class DashboardController extends Controller
->
get
();
->
get
();
// dd($profile);
// dd($profile);
$staffnotes
=
Tproject
::
where
(
'tp_project_type'
,
3
)
$staffnotes
=
Tproject
::
where
(
'tp_project_type'
,
3
)
// ->where('tp_timesheet_sts','<>', 1
)
->
whereIn
(
'tp_timesheet_sts'
,
[
2
,
3
,
5
,
6
]
)
->
where
(
'staffid'
,
$verifier
->
u_staffID
)
->
where
(
'staffid'
,
$verifier
->
u_staffID
)
->
where
(
'tp_year'
,
date
(
'Y'
))
//
->where('tp_year', date('Y'))
->
with
(
'notes'
)
->
with
(
'notes'
)
->
get
();
->
get
();
// dd($staffnotes);
// dd($staffnotes);
...
@@ -268,15 +268,15 @@ class DashboardController extends Controller
...
@@ -268,15 +268,15 @@ class DashboardController extends Controller
->
u_staffID
;
->
u_staffID
;
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
where
(
'tm_timesheet_master_sts'
,
'<>'
,
1
)
->
where
In
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
]
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
get
();
->
get
();
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
->
where
(
'tp_year'
,
date
(
'Y'
))
//
->where('tp_year', date('Y'))
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
In
(
'tp_timesheet_sts'
,
[
2
,
3
,
5
,
6
]
)
->
with
(
'project'
)
->
with
(
'project'
)
->
with
(
'overhead'
)
->
with
(
'overhead'
)
->
with
(
'hod'
)
->
with
(
'hod'
)
...
@@ -299,15 +299,15 @@ class DashboardController extends Controller
...
@@ -299,15 +299,15 @@ class DashboardController extends Controller
$staffs
=
Staff_info
::
where
(
'status'
,
1
)
->
get
();
$staffs
=
Staff_info
::
where
(
'status'
,
1
)
->
get
();
// dd($staffs);
// dd($staffs);
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
$timesheet
=
Ts_master
::
where
(
'tm_staff_id'
,
$staffid
)
->
where
(
'tm_timesheet_master_sts'
,
'<>'
,
1
)
->
where
In
(
'tm_timesheet_master_sts'
,
[
2
,
3
,
5
,
6
]
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_year'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_month'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
orderby
(
'tm_phase'
,
'DESC'
)
->
get
();
->
get
();
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
$projects
=
Tproject
::
where
(
'staffid'
,
$staffid
)
->
where
(
'tp_year'
,
date
(
'Y'
))
//
->where('tp_year', date('Y'))
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
In
(
'tp_timesheet_sts'
,
[
2
,
3
,
5
,
6
]
)
->
with
(
'project'
)
->
with
(
'project'
)
->
with
(
'overhead'
)
->
with
(
'overhead'
)
->
with
(
'hod'
)
->
with
(
'hod'
)
...
@@ -316,9 +316,9 @@ class DashboardController extends Controller
...
@@ -316,9 +316,9 @@ class DashboardController extends Controller
// dd($projects);
// dd($projects);
$staffnotes
=
Tproject
::
where
(
'tp_project_type'
,
3
)
$staffnotes
=
Tproject
::
where
(
'tp_project_type'
,
3
)
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
In
(
'tp_timesheet_sts'
,
[
2
,
3
,
5
,
6
]
)
->
where
(
'staffid'
,
$staffid
)
->
where
(
'staffid'
,
$staffid
)
->
where
(
'tp_year'
,
date
(
'Y'
))
//
->where('tp_year', date('Y'))
->
with
(
'notes'
)
->
with
(
'notes'
)
->
get
();
->
get
();
// dd($staffnotes);
// dd($staffnotes);
...
@@ -335,7 +335,7 @@ class DashboardController extends Controller
...
@@ -335,7 +335,7 @@ class DashboardController extends Controller
->
get
();
->
get
();
// dd($profile);
// dd($profile);
$details
=
Tproject
::
where
(
'tp_project_type'
,
3
)
$details
=
Tproject
::
where
(
'tp_project_type'
,
3
)
->
where
(
'tp_timesheet_sts'
,
'<>'
,
1
)
->
where
In
(
'tp_timesheet_sts'
,
[
2
,
3
,
5
,
6
]
)
->
where
(
'tp_pm'
,
$verifier
->
id
)
->
where
(
'tp_pm'
,
$verifier
->
id
)
->
with
(
'notes'
)
->
with
(
'notes'
)
->
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