Commit 5d7b5d76 by Azhan Hannan

Log Pia #188 : Expectation: If mandays tak update lagi , paparkan ‘’Balance’’

0 Hours 0 Days
parent 3c665522
......@@ -110,8 +110,18 @@
<tr>
<td rowspan="{{count($pteam)+1}}" class="center aligned">{{data_get($role,'role.role')}}</td>
<td rowspan="{{count($pteam)+1}}" class="center aligned">
{{data_get($role,'pm_hours')}} Hours <br>
{{data_get($role,'pm_days')}} Days
<?php $hannan = 0; ?>
<?php
$hannan = data_get($role,'pm_hours');
if ($hannan) {
} else {
$hannan = 0;
}
?>
{{ number_format($hannan, 1, '.', '') }} Hours<br>
{{ number_format($hannan/8, 1, '.', '') }} Days
</td>
<td rowspan="{{count($pteam)+1}}" class="center aligned">
<?php
......@@ -148,10 +158,14 @@
</td>
@if($count == 0)
<td rowspan="{{count($pteam)}}" class="center aligned">
<?php
$balancehours = data_get($role,'pm_hours') - $accumulatehours;
<?php
$balancehours = 0;
if ($hannan == 0) {
} else {
$balancehours = data_get($role,'pm_hours') - $accumulatehours;
}
?>
{{ number_format($balancehours, '1', '.', '') }} Hours <br>
{{ number_format($balancehours, '1', '.', '') }} Hours<br>
{{ number_format($balancehours/8, '1', '.', '') }} Days
</td>
@else
......
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