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
7ede79b3
Commit
7ede79b3
authored
Dec 23, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
report summary - display department name
parent
00fc052b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
+15
-1
packages/portal/timesheet/resources/views/report/ringkasan.blade.php
+5
-0
packages/portal/timesheet/src/Http/Controllers/ReportController.php
+10
-1
No files found.
packages/portal/timesheet/resources/views/report/ringkasan.blade.php
View file @
7ede79b3
...
...
@@ -63,6 +63,11 @@
<div class="
ringkasantable
">
<table class="
ui
unstackable
celled
table
">
<thead>
<tr>
<th style="
width
:
10
%
"> Department</th>
<th style="
width
:
1
%
">:</th>
<th style="
width
:
89
%
"> {{
$deptname
}}</th>
</tr>
<tr>
<th style="
width
:
10
%
"> Month/Year</th>
<th style="
width
:
1
%
">:</th>
...
...
packages/portal/timesheet/src/Http/Controllers/ReportController.php
View file @
7ede79b3
...
...
@@ -82,6 +82,15 @@ class ReportController extends Controller
}
$dept
=
$request
->
dept
;
if
(
$dept
==
'all'
)
{
$deptname
=
'All Staffs'
;
}
else
{
$deptname
=
Department
::
select
(
'description'
)
->
where
(
'id'
,
$dept
)
->
first
()
->
description
;
}
$ringkasan
=
VwRingkasanLaporan
::
where
(
'month'
,
$request
->
month
)
->
where
(
'year'
,
$request
->
year
)
->
where
(
'status'
,
4
)
...
...
@@ -152,7 +161,7 @@ class ReportController extends Controller
$month
=
date
(
'F'
,
mktime
(
0
,
0
,
0
,
$request
->
month
,
1
,
date
(
'Y'
)));
return
view
(
'timesheet::report.ringkasan'
,
compact
(
'intmonth'
,
'month'
,
'year'
,
'ringkasan'
,
'chargeproject'
,
'staffs'
,
'overhead'
,
'ovhours'
,
'chargeprojects'
,
'chargehours'
,
'dept'
,
'deptlist'
,
'yearlist'
,
'monthlist'
));
return
view
(
'timesheet::report.ringkasan'
,
compact
(
'intmonth'
,
'month'
,
'year'
,
'ringkasan'
,
'chargeproject'
,
'staffs'
,
'overhead'
,
'ovhours'
,
'chargeprojects'
,
'chargehours'
,
'dept'
,
'deptlist'
,
'yearlist'
,
'monthlist'
,
'deptname'
));
}
public
function
projectreport
()
...
...
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