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