Commit 8b01f824 by Azhan Hannan

changes

parent 1959b323
...@@ -529,7 +529,30 @@ ...@@ -529,7 +529,30 @@
{ {
foreach ($haribekerja as $key => $hari) { foreach ($haribekerja as $key => $hari) {
if (data_get($hari,'day_type') == 2 && data_get($hari,'day_type') == 3) if (data_get($hari,'day_type') == 2)
{
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 (data_get($hari,'day_type') == 3)
{ {
if ($chargehour) { if ($chargehour) {
$valcbyday = $chargehour->where('td_date','=', $date) $valcbyday = $chargehour->where('td_date','=', $date)
...@@ -600,7 +623,6 @@ ...@@ -600,7 +623,6 @@
} }
} }
} }
?> ?>
<th style="width: 4%;"> <th style="width: 4%;">
......
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