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
10cbb645
Commit
10cbb645
authored
Jun 22, 2022
by
hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding checking before update to dev
parent
b2b277ba
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
packages/portal/timesheet/resources/views/dashboard/chargeableForm.blade.php
+1
-1
packages/portal/timesheet/resources/views/dashboard/nonChargeableForm.blade.php
+1
-1
packages/portal/timesheet/resources/views/dashboard/overheadForm.blade.php
+1
-1
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+10
-10
No files found.
packages/portal/timesheet/resources/views/dashboard/chargeableForm.blade.php
View file @
10cbb645
...
...
@@ -103,7 +103,7 @@ input[type=number] {
->where('tm_phase',
$phase
)
->first();
$total
+=
$valuehour->td_hours
;
$total
+=
data_get(
$valuehour
,'td_hours')
;
}
?>
...
...
packages/portal/timesheet/resources/views/dashboard/nonChargeableForm.blade.php
View file @
10cbb645
...
...
@@ -130,7 +130,7 @@ input[type=number] {
->where('tm_phase',
$phase
)
->first();
$total
+=
$valuehour->td_hours
;
$total
+=
data_get(
$valuehour
,'td_hours')
;
}
?>
...
...
packages/portal/timesheet/resources/views/dashboard/overheadForm.blade.php
View file @
10cbb645
...
...
@@ -58,7 +58,7 @@ input[type=number] {
</th>
</tr>
<tr>
<th class="
single
line
">
Project Name
</th>
<th class="
single
line
">
Task
</th>
@if(
$phase
== 1)
@for(
$i
= 0;
$i
< 15 ;
$i
++)
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
10cbb645
...
...
@@ -634,7 +634,7 @@ class DashboardController extends Controller
//update hours to null
$checkTimesheetDetail
->
td_hours
=
$valuehour
;
$checkTimesheetDetail
->
updated_by
=
$userI
;
$checkTimesheetDetail
->
updated_by
=
$userI
d
;
$checkTimesheetDetail
->
update
();
}
//kalau takde, isi semua.
...
...
@@ -645,7 +645,7 @@ class DashboardController extends Controller
$tmdetail
->
td_date
=
$date
;
$tmdetail
->
td_project
=
$projectid
;
$tmdetail
->
fk_tm_id
=
$tmasterid
;
$tmdetail
->
tm_staff_id
=
$userI
;
$tmdetail
->
tm_staff_id
=
$userI
d
;
$tmdetail
->
tm_month
=
$check
->
tm_month
;
$tmdetail
->
tm_year
=
$check
->
tm_year
;
$tmdetail
->
tm_phase
=
$check
->
tm_phase
;
...
...
@@ -656,7 +656,7 @@ class DashboardController extends Controller
$tmdetail
->
td_project_name
=
$project
->
p_project_description
;
$tmdetail
->
td_hours
=
$valuehour
;
$tmdetail
->
updated_by
=
$userI
;
$tmdetail
->
updated_by
=
$userI
d
;
$tmdetail
->
save
();
//$tmdetail -> kjhdiwhdf;
...
...
@@ -696,7 +696,7 @@ class DashboardController extends Controller
->
u_staffID
;
// check table master. untuk total chargeable hours.
$check
=
Ts_master
::
where
(
'tm_staff_id'
,
$userI
)
$check
=
Ts_master
::
where
(
'tm_staff_id'
,
$userI
d
)
->
where
(
'tm_year'
,
$request
->
year
)
->
where
(
'tm_month'
,
$request
->
month
)
->
where
(
'tm_phase'
,
$request
->
phase
)
...
...
@@ -713,11 +713,11 @@ class DashboardController extends Controller
else
{
$check
=
new
Ts_master
;
$check
->
tm_staff_id
=
$userI
;
$check
->
tm_staff_id
=
$userI
d
;
$check
->
tm_year
=
$request
->
year
;
$check
->
tm_month
=
$request
->
month
;
$check
->
tm_phase
=
$request
->
phase
;
$check
->
updated_by
=
$userI
;
$check
->
updated_by
=
$userI
d
;
// $check ->tm_chargeable_hrs = ;
$check
->
save
();
...
...
@@ -756,7 +756,7 @@ class DashboardController extends Controller
//update hours to null
$checkTimesheetDetail
->
td_hours
=
$valuehour
;
$checkTimesheetDetail
->
updated_by
=
$userI
;
$checkTimesheetDetail
->
updated_by
=
$userI
d
;
$checkTimesheetDetail
->
update
();
}
//kalau takde, isi semua.
...
...
@@ -767,12 +767,12 @@ class DashboardController extends Controller
$tmdetail
->
td_date
=
$date
;
$tmdetail
->
fk_o_id
=
$projectid
;
$tmdetail
->
fk_tm_id
=
$tmasterid
;
$tmdetail
->
tm_staff_id
=
$userI
;
$tmdetail
->
tm_staff_id
=
$userI
d
;
$tmdetail
->
tm_month
=
$check
->
tm_month
;
$tmdetail
->
tm_year
=
$check
->
tm_year
;
$tmdetail
->
tm_phase
=
$check
->
tm_phase
;
$tmdetail
->
td_project_type
=
$overhead
;
$tmdetail
->
updated_by
=
$userI
;
$tmdetail
->
updated_by
=
$userI
d
;
$project
=
Overhead
::
where
(
'id'
,
$projectid
)
->
first
();
...
...
@@ -841,7 +841,7 @@ class DashboardController extends Controller
$data
=
new
Overhead
;
$data
->
o_overhead_desc
=
$request
->
overheadlookup
;
$data
->
o_overhead_sts
=
$request
->
status
;
$data
->
updated_by
=
$userI
;
$data
->
updated_by
=
$userI
d
;
$data
->
save
();
return
redirect
()
->
route
(
'timesheet::dashboard.senaraiOverhead'
)
...
...
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