Commit cea3469d by Azhan Hannan

changes

parent a7990ccb
......@@ -552,7 +552,7 @@
$totalot += $cuti;
}
if (data_get($hari,'day_type') == 3)
if (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 1)
{
if ($chargehour) {
$valcbyday = $chargehour->where('td_date','=', $date)
......@@ -646,7 +646,7 @@
@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)
{{ number_format($cuti, '1', '.', '') }}
@else
......@@ -717,7 +717,7 @@
$totalot += $cuti;
}
if (data_get($hari,'day_type') == 3)
if (data_get($hari,'day_type') == 3 && data_get($hari,'attendance_status') == 1)
{
if ($chargehour) {
$valcbyday = $chargehour->where('td_date','=', $date)
......@@ -812,7 +812,7 @@
@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)
{{ number_format($cuti, '1', '.', '') }}
@else
......
......@@ -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) {
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