Commit 85284a19 by Azhan Hannan

timesheet viewer changes

parent 639deca0
...@@ -717,7 +717,7 @@ ...@@ -717,7 +717,7 @@
$totalot += $cuti; $totalot += $cuti;
} }
if (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 1) if (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 1 || (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 4))
{ {
if ($chargehour) { if ($chargehour) {
$valcbyday = $chargehour->where('td_date','=', $date) $valcbyday = $chargehour->where('td_date','=', $date)
...@@ -796,11 +796,11 @@ ...@@ -796,11 +796,11 @@
$date = $year.'-'.sprintf('%02d', $month).'-'.sprintf('%02d', $i+1); $date = $year.'-'.sprintf('%02d', $month).'-'.sprintf('%02d', $i+1);
$haribekerja = $statushari->where('DATE',$date); $haribekerja = $statushari->where('DATE',$date);
?> ?>
@if(count($haribekerja) > 0) @if(count($haribekerja) > 0)
@foreach ($haribekerja as $key => $hari) @foreach ($haribekerja as $key => $hari)
<?php <?php
// dump(data_get($hari,'day_type')); // dump(data_get($hari,'day_type'));
// dump($cuti);
?> ?>
@if(data_get($hari,'day_type') == '2') @if(data_get($hari,'day_type') == '2')
...@@ -812,7 +812,7 @@ ...@@ -812,7 +812,7 @@
@endif @endif
@endif @endif
@if(data_get($hari,'day_type') == '3' && data_get($hari,'attendance_status') == 1) @if(data_get($hari,'day_type') == '3' && data_get($hari,'attendance_status') == 1 || (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 4) || (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 5))
@if($cuti > 0) @if($cuti > 0)
{{ number_format($cuti, '1', '.', '') }} {{ number_format($cuti, '1', '.', '') }}
@else @else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment