Commit 7e86c8ce by Azhan Hannan

fixing report by project

parent 33cd0610
......@@ -71,7 +71,7 @@
$currhour = 0;
$currmonthhours = $currentmonthhours->where('staffid', data_get($team,'pt_staff_id'));
foreach ($currmonthhours as $key => $hours) {
$currhour = data_get($hours,'tp_hours');
$currhour += data_get($hours,'tp_hours');
}
?>
{{ number_format($currhour, '1', '.', '') }} Hours
......
......@@ -157,7 +157,7 @@
$currhour = 0;
$currmonthhours = $currentmonthhours->where('staffid', data_get($team,'pt_staff_id'));
foreach ($currmonthhours as $key => $hours) {
$currhour = data_get($hours,'tp_hours');
$currhour += data_get($hours,'tp_hours');
}
// dd($currmonthhours);
?>
......
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