Commit cea3469d by Azhan Hannan

changes

parent a7990ccb
...@@ -552,7 +552,7 @@ ...@@ -552,7 +552,7 @@
$totalot += $cuti; $totalot += $cuti;
} }
if (data_get($hari,'day_type') == 3) if (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 1)
{ {
if ($chargehour) { if ($chargehour) {
$valcbyday = $chargehour->where('td_date','=', $date) $valcbyday = $chargehour->where('td_date','=', $date)
...@@ -646,7 +646,7 @@ ...@@ -646,7 +646,7 @@
@endif @endif
@endif @endif
@if(data_get($hari,'day_type') == '3') @if(data_get($hari,'day_type') == '3' && data_get($hari,'attendance_status') == 1)
@if($cuti > 0) @if($cuti > 0)
{{ number_format($cuti, '1', '.', '') }} {{ number_format($cuti, '1', '.', '') }}
@else @else
...@@ -717,7 +717,7 @@ ...@@ -717,7 +717,7 @@
$totalot += $cuti; $totalot += $cuti;
} }
if (data_get($hari,'day_type') == 3) if (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 1)
{ {
if ($chargehour) { if ($chargehour) {
$valcbyday = $chargehour->where('td_date','=', $date) $valcbyday = $chargehour->where('td_date','=', $date)
...@@ -812,7 +812,7 @@ ...@@ -812,7 +812,7 @@
@endif @endif
@endif @endif
@if(data_get($hari,'day_type') == '3') @if(data_get($hari,'day_type') == '3' && data_get($hari,'attendance_status') == 1)
@if($cuti > 0) @if($cuti > 0)
{{ number_format($cuti, '1', '.', '') }} {{ number_format($cuti, '1', '.', '') }}
@else @else
......
...@@ -1382,7 +1382,7 @@ class FormController extends Controller ...@@ -1382,7 +1382,7 @@ class FormController extends Controller
} }
} }
$cutiumum = $lat->where('day_type', 3); $cutiumum = $lat->where('day_type', 3)->where('attendance_status',1);
if (count($cutiumum) > 0) { if (count($cutiumum) > 0) {
foreach ($cutiumum as $key => $value) { foreach ($cutiumum as $key => $value) {
......
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