Commit 1ea1a9bf by Azhan Hannan

changes cuti umum

parent 8b01f824
...@@ -646,6 +646,15 @@ ...@@ -646,6 +646,15 @@
@endif @endif
@endif @endif
@if(data_get($hari,'day_type') == '3')
@if($cuti > 0)
{{ number_format($cuti, '1', '.', '') }}
@else
<!-- ({{ number_format(abs($cuti), '1', '.', '') }}) -->
-
@endif
@endif
@if(date('D', strtotime(data_get($hari,'DATE'))) == 'Sat' && data_get($hari,'day_type') == '1') @if(date('D', strtotime(data_get($hari,'DATE'))) == 'Sat' && data_get($hari,'day_type') == '1')
@if($sabtu > 0) @if($sabtu > 0)
{{ number_format($sabtu, '1', '.', '') }} {{ number_format($sabtu, '1', '.', '') }}
...@@ -708,6 +717,29 @@ ...@@ -708,6 +717,29 @@
$totalot += $cuti; $totalot += $cuti;
} }
if (data_get($hari,'day_type') == 3)
{
if ($chargehour) {
$valcbyday = $chargehour->where('td_date','=', $date)
->where('tm_phase',$phase);
foreach($valcbyday as $key => $value) {
$totalcbyday += data_get($value,'td_hours');
}
}
if ($overheadhour) {
$valoverheadbyday = $overheadhour->where('td_date','=', $date)
->where('tm_phase',$phase);
foreach($valoverheadbyday as $key => $value) {
$totaloverheadbyday += data_get($value,'td_hours');
}
}
$cuti = ($totalcbyday + $totaloverheadbyday);
// dump(data_get($hari,'DATE').' : '.$cuti);
$totalot += $cuti;
}
if (date('D', strtotime(data_get($hari,'DATE'))) == 'Sat' && data_get($hari,'day_type') == 1) if (date('D', strtotime(data_get($hari,'DATE'))) == 'Sat' && data_get($hari,'day_type') == 1)
{ {
if ($chargehour) { if ($chargehour) {
...@@ -780,6 +812,15 @@ ...@@ -780,6 +812,15 @@
@endif @endif
@endif @endif
@if(data_get($hari,'day_type') == '3')
@if($cuti > 0)
{{ number_format($cuti, '1', '.', '') }}
@else
<!-- ({{ number_format(abs($cuti), '1', '.', '') }}) -->
-
@endif
@endif
@if(date('D', strtotime(data_get($hari,'DATE'))) == 'Sat' && data_get($hari,'day_type') == '1') @if(date('D', strtotime(data_get($hari,'DATE'))) == 'Sat' && data_get($hari,'day_type') == '1')
@if($sabtu > 0) @if($sabtu > 0)
{{ number_format($sabtu, '1', '.', '') }} {{ number_format($sabtu, '1', '.', '') }}
......
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