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
201bb5c2
Commit
201bb5c2
authored
Feb 24, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bila tarikh belum lepas timesheet master, tm_phase, takleh submit
parent
fe3a338f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
+1
-1
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+23
-3
No files found.
packages/portal/timesheet/resources/views/dashboard/dashboardpmhod.blade.php
View file @
201bb5c2
...
...
@@ -289,7 +289,7 @@
$page
= 1;
$project
=
$checksts
= 0;
$pmss
=
$profile->where
('dept', 4)->where('staff_id', '<>',
$verifier->u_staffID
);
// dd(
$p
rofile
);
// dd(
$p
mss
);
?>
@if(
$pms
)
@foreach(
$pmss
as
$key
=>
$staff
)
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
201bb5c2
...
...
@@ -1815,6 +1815,28 @@ class DashboardController extends Controller
$userinfo
=
Staff_info
::
where
(
'fk_users'
,
auth
::
id
())
->
first
();
$request
->
year
=
2023
;
$request
->
month
=
2
;
$request
->
phase
=
1
;
$lastday
=
cal_days_in_month
(
CAL_GREGORIAN
,
$request
->
month
,
$request
->
year
);
$tm_date
=
date
(
$request
->
year
.
'-'
.
$request
->
month
.
'-01'
);
if
(
$request
->
phase
==
1
)
{
$tm_date
=
date
(
$request
->
year
.
'-'
.
$request
->
month
.
'-15'
);
}
else
{
$tm_date
=
date
(
$request
->
year
.
'-'
.
$request
->
month
.
'-'
.
$lastday
);
}
$date
=
date
(
$request
->
year
.
'-'
.
$request
->
month
.
'-'
.
$lastday
);
$submissiondate
=
date
(
"Y-n-j"
);
if
(
$submissiondate
>
$tm_date
)
{
}
else
{
return
redirect
()
->
route
(
'timesheet::form.filterChargeable'
)
->
withWarning
(
'You have not pass the submission day yet. Please check your month and phase before you submit'
);
}
if
(
$userinfo
->
fk_lkp_department
==
7
)
{
$attachmentexist
=
NotesAttachement
::
where
(
'fk_timesheet_master'
,
$request
->
tid
)
->
first
();
if
(
is_null
(
$attachmentexist
))
{
...
...
@@ -1826,7 +1848,6 @@ class DashboardController extends Controller
->
whereNotNull
(
'td_hours'
)
->
where
(
'td_project_type'
,
3
)
->
get
();
// dd($checknotes);
foreach
(
$checknotes
as
$key
=>
$value
)
{
if
(
$value
->
td_overhead_note
==
null
)
...
...
@@ -1844,7 +1865,6 @@ class DashboardController extends Controller
$month
=
data_get
(
$tm
,
'tm_month'
);
$year
=
data_get
(
$tm
,
'tm_year'
);
$daymonth
=
cal_days_in_month
(
CAL_GREGORIAN
,
$month
,
$year
);
$myDate
=
$month
.
'/'
.
'1'
.
'/'
.
$year
;
...
...
@@ -1920,7 +1940,7 @@ class DashboardController extends Controller
$intro
=
'The timesheet is not complete. Please refer to the date and hours required.<br>'
;
$text
=
''
;
foreach
(
$kurang
as
$key
=>
$value
)
{
// dd($value);
$text
=
$text
.
'<br>'
.
strval
(
data_get
(
$value
,
'tarikh'
))
.
' : not enough '
.
strval
(
data_get
(
$value
,
'hourskurang'
))
.
' hours'
;
}
$fulltext
=
$intro
.
$text
;
...
...
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