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
3925600c
Commit
3925600c
authored
Nov 16, 2022
by
Azhan Hannan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes
parent
e74afdb9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
+2
-2
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
+1
-1
packages/portal/timesheet/src/Http/Controllers/FormController.php
+2
-1
No files found.
packages/portal/timesheet/resources/views/dashboard/timesheetViewer.blade.php
View file @
3925600c
...
...
@@ -160,8 +160,8 @@
<td style="
width
:
5
%
">{{ number_format(
$totalcharge
, 1, '.', '') }}</td>
<td style="
width
:
5
%
">{{ number_format(
$totalcharge
/8, 1, '.', '') }}</td>
@else
<td style="
width
:
5
%
"></td>
<td style="
width
:
5
%
"></td>
<td style="
width
:
5
%
">
0
</td>
<td style="
width
:
5
%
">
0
</td>
@endif
</tr>
...
...
packages/portal/timesheet/src/Http/Controllers/DashboardController.php
View file @
3925600c
...
...
@@ -1252,7 +1252,7 @@ class DashboardController extends Controller
$profile
=
VwViewer
::
where
(
'STAFF_ID'
,
$user
->
staff_id
)
->
orderby
(
'DEPARTMENT'
,
'DESC'
)
->
first
();
// dd($
profile
);
// dd($
user->staff_id
);
$dept
=
Department
::
where
(
'id'
,
$user
->
fk_lkp_department
)
->
first
();
...
...
packages/portal/timesheet/src/Http/Controllers/FormController.php
View file @
3925600c
...
...
@@ -1100,7 +1100,8 @@ class FormController extends Controller
}
}
$halfday
=
$lat
->
where
(
'attendance_status'
,
1
)
->
whereIn
(
'jenis_cuti'
,
[
'AL(m)'
,
'AL (e)'
]);
// $halfday = $lat->where('attendance_status', 1)->whereIn('jenis_cuti', ['AL(m)','AL (e)']);
$halfday
=
$lat
->
whereIn
(
'jenis_cuti'
,
[
'AL(m)'
,
'AL (e)'
]);
// dd($halfday);
if
(
count
(
$halfday
)
>
0
)
{
foreach
(
$halfday
as
$key
=>
$value
)
{
...
...
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