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
cb4ab009
Commit
cb4ab009
authored
Nov 30, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log Pia #107, #108, #109
parent
5700e67c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
10 deletions
+14
-10
packages/portal/timesheet/resources/views/dashboard/approveallaction.blade.php
+7
-5
packages/portal/timesheet/resources/views/dashboard/selectapprovalpage.blade.php
+7
-5
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+0
-0
No files found.
packages/portal/timesheet/resources/views/dashboard/approveallaction.blade.php
View file @
cb4ab009
...
...
@@ -103,6 +103,7 @@
$valchargehour
=
$chargehour->where
('td_date','=',
$date
)
->where('td_project',
$projectchargeable['pid']
)
->where('tm_phase',
$phase
)
->where('td_hours','<>',0)
->first();
$totalcharge
+= data_get(
$valchargehour
,'td_hours');
// dump(
$totalcharge
);
...
...
@@ -125,6 +126,7 @@
$valchargehour
=
$chargehour->where
('td_date','=',
$date
)
->where('td_project',
$projectchargeable['pid']
)
->where('tm_phase',
$phase
)
->where('td_hours','<>',0)
->first();
$totalcharge
+= data_get(
$valchargehour
,'td_hours');
}
...
...
@@ -137,11 +139,11 @@
@endfor
@endif
@if(
$totalcharge
)
<td>{{ number_format(
$totalcharge
, 1, '.', '') }}</td>
<td>{{ number_format(
$totalcharge
/8, 1, '.', '') }}</td>
<td
style="
width
:
5
%
"
>{{ number_format(
$totalcharge
, 1, '.', '') }}</td>
<td
style="
width
:
5
%
"
>{{ number_format(
$totalcharge
/8, 1, '.', '') }}</td>
@else
<td>0</td>
<td>0</td>
<td
style="
width
:
5
%
"
>0</td>
<td
style="
width
:
5
%
"
>0</td>
@endif
</tr>
@endforeach
...
...
@@ -362,7 +364,7 @@
<div class="
field
">
<label>Action</label>
<select class="
ui
fluid
dropdown
" name="
action
">
<option value="
1
">Approv
al
</option>
<option value="
1
">Approv
e
</option>
<option value="
2
">Reject</option>
</select>
</div>
...
...
packages/portal/timesheet/resources/views/dashboard/selectapprovalpage.blade.php
View file @
cb4ab009
...
...
@@ -103,6 +103,7 @@
$valchargehour
=
$chargehour->where
('td_date','=',
$date
)
->where('td_project',
$projectchargeable['pid']
)
->where('tm_phase',
$phase
)
->where('td_hours','<>',0)
->first();
$totalcharge
+= data_get(
$valchargehour
,'td_hours');
// dump(
$totalcharge
);
...
...
@@ -125,6 +126,7 @@
$valchargehour
=
$chargehour->where
('td_date','=',
$date
)
->where('td_project',
$projectchargeable['pid']
)
->where('tm_phase',
$phase
)
->where('td_hours','<>',0)
->first();
$totalcharge
+= data_get(
$valchargehour
,'td_hours');
}
...
...
@@ -137,11 +139,11 @@
@endfor
@endif
@if(
$totalcharge
)
<td>{{ number_format(
$totalcharge
, 1, '.', '') }}</td>
<td>{{ number_format(
$totalcharge
/8, 1, '.', '') }}</td>
<td
style="
width
:
5
%
"
>{{ number_format(
$totalcharge
, 1, '.', '') }}</td>
<td
style="
width
:
5
%
"
>{{ number_format(
$totalcharge
/8, 1, '.', '') }}</td>
@else
<td>0</td>
<td>0</td>
<td
style="
width
:
5
%
"
>0</td>
<td
style="
width
:
5
%
"
>0</td>
@endif
</tr>
@endforeach
...
...
@@ -356,7 +358,7 @@
<div class="
field
">
<label>Action</label>
<select class="
ui
fluid
dropdown
" name="
action
">
<option value="
1
">Approv
al
</option>
<option value="
1
">Approv
e
</option>
<option value="
2
">Reject</option>
</select>
</div>
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
cb4ab009
This diff is collapsed.
Click to expand it.
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