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
1db55fcd
Commit
1db55fcd
authored
Jan 03, 2023
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter year -> filter chargeable
parent
2fb7abeb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
packages/portal/timesheet/src/Http/Controllers/FormController.php
+8
-4
No files found.
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
1db55fcd
...
@@ -86,8 +86,8 @@ class FormController extends Controller
...
@@ -86,8 +86,8 @@ class FormController extends Controller
}
}
public
function
chargeableselectmonthphase
(
Request
$request
){
public
function
chargeableselectmonthphase
(
Request
$request
){
// dd($request);
return
redirect
()
->
route
(
'timesheet::form.chargeableForm'
,
[
'phase'
=>
$request
->
phase
,
'month'
=>
$request
->
month
]);
return
redirect
()
->
route
(
'timesheet::form.chargeableForm'
,
[
'phase'
=>
$request
->
phase
,
'month'
=>
$request
->
month
,
'year'
=>
$request
->
year
]);
}
}
// public function nonchargeableselectmonthphase(Request $request){
// public function nonchargeableselectmonthphase(Request $request){
...
@@ -107,7 +107,7 @@ class FormController extends Controller
...
@@ -107,7 +107,7 @@ class FormController extends Controller
public
function
chargeableForm
(
Request
$request
)
public
function
chargeableForm
(
Request
$request
)
{
{
// dd($request);
$chargeable
=
1
;
$chargeable
=
1
;
$userId
=
users
::
find
(
Auth
::
id
())
$userId
=
users
::
find
(
Auth
::
id
())
...
@@ -119,7 +119,10 @@ class FormController extends Controller
...
@@ -119,7 +119,10 @@ class FormController extends Controller
->
where
(
'pt_project_task_sts'
,
1
)
->
where
(
'pt_project_task_sts'
,
1
)
->
with
(
'toProject'
)
->
with
(
'toProject'
)
->
get
();
->
get
();
// dd('hi');
// dd($project);
// dd($project);
$projectlist
=
[];
$projectlist
=
[];
foreach
(
$project
as
$key
=>
$value
)
{
foreach
(
$project
as
$key
=>
$value
)
{
...
@@ -137,7 +140,8 @@ class FormController extends Controller
...
@@ -137,7 +140,8 @@ class FormController extends Controller
}
}
$year
=
date
(
'Y'
);
// $year = date('Y');
$year
=
$request
->
year
;
if
(
isset
(
$request
->
phase
))
if
(
isset
(
$request
->
phase
))
{
{
...
...
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