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
6b2c86d2
Commit
6b2c86d2
authored
Sep 30, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display mandays dalam screen laporan project
parent
1baa4d3d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
5 deletions
+12
-5
packages/portal/timesheet/resources/views/exports/exportProject.blade.php
+3
-2
packages/portal/timesheet/resources/views/report/project.blade.php
+2
-2
packages/portal/timesheet/src/Http/Controllers/ExportController.php
+1
-0
packages/portal/timesheet/src/Http/Controllers/ReportController.php
+2
-1
packages/portal/timesheet/src/Model/VwProject.php
+4
-0
No files found.
packages/portal/timesheet/resources/views/exports/exportProject.blade.php
View file @
6b2c86d2
...
@@ -50,8 +50,8 @@
...
@@ -50,8 +50,8 @@
<tr>
<tr>
<th><strong>
Total
</strong></th>
<th><strong>
Total
</strong></th>
<th></th>
<th></th>
<th><strong>
{{$totalhours}}
</strong></th>
<th><strong>
{{$totalhours}}
/ {{data_get($pdetail,'mandays.p_total_hours')}}
</strong></th>
<th><strong>
{{$totaldays}}
</strong></th>
<th><strong>
{{$totaldays}}
/ {{data_get($pdetail,'mandays.p_total_days')}}
</strong></th>
</tr>
</tr>
</tfoot>
</tfoot>
</table>
</table>
\ No newline at end of file
packages/portal/timesheet/resources/views/report/project.blade.php
View file @
6b2c86d2
...
@@ -68,8 +68,8 @@
...
@@ -68,8 +68,8 @@
<tr>
<tr>
<th style="
width
:
40
%
"><strong>Total</strong></th>
<th style="
width
:
40
%
"><strong>Total</strong></th>
<th style="
width
:
30
%
"></th>
<th style="
width
:
30
%
"></th>
<th style="
width
:
15
%
" class="
center
aligned
"><strong>
{
{$totalhours}
}
</strong></th>
<th style="
width
:
15
%
" class="
center
aligned
"><strong>
{
{$totalhours}
}
/
{
{data_get($pdetail,'mandays.p_total_hours')}
}
</strong></th>
<th style="
width
:
15
%
" class="
center
aligned
"><strong>
{
{$totaldays}
}
</strong></th>
<th style="
width
:
15
%
" class="
center
aligned
"><strong>
{
{$totaldays}
}
/
{
{data_get($pdetail,'mandays.p_total_days')}
}
</strong></th>
</tr>
</tr>
</tfoot>
</tfoot>
</table>
</table>
...
...
packages/portal/timesheet/src/Http/Controllers/ExportController.php
View file @
6b2c86d2
...
@@ -66,6 +66,7 @@ class ExportController extends Controller
...
@@ -66,6 +66,7 @@ class ExportController extends Controller
$month
=
date
(
'F'
,
mktime
(
0
,
0
,
0
,
$request
->
month
,
1
,
date
(
'Y'
)));
$month
=
date
(
'F'
,
mktime
(
0
,
0
,
0
,
$request
->
month
,
1
,
date
(
'Y'
)));
$year
=
strval
(
$request
->
year
);
$year
=
strval
(
$request
->
year
);
$pdetail
=
VwProject
::
where
(
'pid'
,
$request
->
pid
)
$pdetail
=
VwProject
::
where
(
'pid'
,
$request
->
pid
)
->
with
(
'mandays'
)
->
first
();
->
first
();
...
...
packages/portal/timesheet/src/Http/Controllers/ReportController.php
View file @
6b2c86d2
...
@@ -119,8 +119,9 @@ class ReportController extends Controller
...
@@ -119,8 +119,9 @@ class ReportController extends Controller
$pid
=
$request
->
project
;
$pid
=
$request
->
project
;
$pdetail
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
$pdetail
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
->
with
(
'mandays'
)
->
first
();
->
first
();
// dd($pdetail);
$pteam
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
$pteam
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
->
where
(
'roleid'
,
'<>'
,
'7'
)
->
where
(
'roleid'
,
'<>'
,
'7'
)
->
orderby
(
'roleid'
)
->
orderby
(
'roleid'
)
...
...
packages/portal/timesheet/src/Model/VwProject.php
View file @
6b2c86d2
...
@@ -27,5 +27,9 @@ class VwProject extends Model
...
@@ -27,5 +27,9 @@ class VwProject extends Model
}
}
public
function
mandays
()
{
return
$this
->
hasOne
(
'Portal\Timesheet\Model\Project'
,
'id'
,
'pid'
);
}
}
}
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