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
2bd9741e
Commit
2bd9741e
authored
Sep 30, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Laporan by project -> hide/ remove PD
Tambah column mandays hours dgn days dalam table project & migration
parent
130a0ab5
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
0 deletions
+38
-0
app/Exports/ProjectExport.php
+2
-0
database/migrations/2022_09_30_113947_add_column_mandays_in_table_project.php
+34
-0
packages/portal/timesheet/src/Http/Controllers/ExportController.php
+0
-0
packages/portal/timesheet/src/Http/Controllers/ReportController.php
+2
-0
No files found.
app/Exports/ProjectExport.php
View file @
2bd9741e
...
@@ -87,12 +87,14 @@ class ProjectExport implements FromView, ShouldAutoSize, WithColumnWidths, WithS
...
@@ -87,12 +87,14 @@ class ProjectExport implements FromView, ShouldAutoSize, WithColumnWidths, WithS
->
first
(),
->
first
(),
'pteam'
=>
VwProject
::
where
(
'pid'
,
$project
)
'pteam'
=>
VwProject
::
where
(
'pid'
,
$project
)
->
where
(
'roleid'
,
'<>'
,
'7'
)
->
orderby
(
'roleid'
)
->
orderby
(
'roleid'
)
->
get
(),
->
get
(),
'ptdetail'
=>
VwProject
::
where
(
'pid'
,
$project
)
'ptdetail'
=>
VwProject
::
where
(
'pid'
,
$project
)
->
where
(
'MONTH'
,
$month
)
->
where
(
'MONTH'
,
$month
)
->
where
(
'year'
,
$year
)
->
where
(
'year'
,
$year
)
->
where
(
'roleid'
,
'<>'
,
'7'
)
->
orderby
(
'roleid'
)
->
orderby
(
'roleid'
)
->
get
()
->
get
()
...
...
database/migrations/2022_09_30_113947_add_column_mandays_in_table_project.php
0 → 100644
View file @
2bd9741e
<?php
use
Illuminate\Support\Facades\Schema
;
use
Illuminate\Database\Schema\Blueprint
;
use
Illuminate\Database\Migrations\Migration
;
class
AddColumnMandaysInTableProject
extends
Migration
{
/**
* Run the migrations.
*
* @return void
*/
public
function
up
()
{
Schema
::
table
(
'project'
,
function
(
Blueprint
$table
)
{
$table
->
double
(
'p_total_hours'
,
10
,
2
)
->
after
(
'p_project_type'
)
->
unsigned
()
->
nullable
();
$table
->
double
(
'p_total_days'
,
10
,
2
)
->
after
(
'p_total_hours'
)
->
unsigned
()
->
nullable
();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public
function
down
()
{
Schema
::
table
(
'project'
,
function
(
Blueprint
$table
)
{
$table
->
dropColumn
(
'p_total_hours'
);
$table
->
dropColumn
(
'p_total_days'
);
});
}
}
packages/portal/timesheet/src/Http/Controllers/ExportController.php
View file @
2bd9741e
packages/portal/timesheet/src/Http/Controllers/ReportController.php
View file @
2bd9741e
...
@@ -122,12 +122,14 @@ class ReportController extends Controller
...
@@ -122,12 +122,14 @@ class ReportController extends Controller
->
first
();
->
first
();
$pteam
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
$pteam
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
->
where
(
'roleid'
,
'<>'
,
'7'
)
->
orderby
(
'roleid'
)
->
orderby
(
'roleid'
)
->
get
();
->
get
();
$ptdetail
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
$ptdetail
=
VwProject
::
where
(
'pid'
,
$request
->
project
)
->
where
(
'MONTH'
,
$request
->
month
)
->
where
(
'MONTH'
,
$request
->
month
)
->
where
(
'year'
,
$request
->
year
)
->
where
(
'year'
,
$request
->
year
)
->
where
(
'roleid'
,
'<>'
,
'7'
)
->
orderby
(
'roleid'
)
->
orderby
(
'roleid'
)
->
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