Commit cb4ab009 by Azhan Hannan

Log Pia #107, #108, #109

parent 5700e67c
......@@ -103,6 +103,7 @@
$valchargehour = $chargehour->where('td_date','=',$date)
->where('td_project',$projectchargeable['pid'])
->where('tm_phase',$phase)
->where('td_hours','<>',0)
->first();
$totalcharge += data_get($valchargehour,'td_hours');
// dump($totalcharge);
......@@ -125,6 +126,7 @@
$valchargehour = $chargehour->where('td_date','=',$date)
->where('td_project',$projectchargeable['pid'])
->where('tm_phase',$phase)
->where('td_hours','<>',0)
->first();
$totalcharge += data_get($valchargehour,'td_hours');
}
......@@ -137,11 +139,11 @@
@endfor
@endif
@if($totalcharge)
<td>{{ number_format($totalcharge, 1, '.', '') }}</td>
<td>{{ number_format($totalcharge/8, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totalcharge, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totalcharge/8, 1, '.', '') }}</td>
@else
<td>0</td>
<td>0</td>
<td style="width: 5%">0</td>
<td style="width: 5%">0</td>
@endif
</tr>
@endforeach
......@@ -362,7 +364,7 @@
<div class="field">
<label>Action</label>
<select class="ui fluid dropdown" name="action">
<option value="1">Approval</option>
<option value="1">Approve</option>
<option value="2">Reject</option>
</select>
</div>
......
......@@ -103,6 +103,7 @@
$valchargehour = $chargehour->where('td_date','=',$date)
->where('td_project',$projectchargeable['pid'])
->where('tm_phase',$phase)
->where('td_hours','<>',0)
->first();
$totalcharge += data_get($valchargehour,'td_hours');
// dump($totalcharge);
......@@ -125,6 +126,7 @@
$valchargehour = $chargehour->where('td_date','=',$date)
->where('td_project',$projectchargeable['pid'])
->where('tm_phase',$phase)
->where('td_hours','<>',0)
->first();
$totalcharge += data_get($valchargehour,'td_hours');
}
......@@ -137,11 +139,11 @@
@endfor
@endif
@if($totalcharge)
<td>{{ number_format($totalcharge, 1, '.', '') }}</td>
<td>{{ number_format($totalcharge/8, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totalcharge, 1, '.', '') }}</td>
<td style="width: 5%">{{ number_format($totalcharge/8, 1, '.', '') }}</td>
@else
<td>0</td>
<td>0</td>
<td style="width: 5%">0</td>
<td style="width: 5%">0</td>
@endif
</tr>
@endforeach
......@@ -356,7 +358,7 @@
<div class="field">
<label>Action</label>
<select class="ui fluid dropdown" name="action">
<option value="1">Approval</option>
<option value="1">Approve</option>
<option value="2">Reject</option>
</select>
</div>
......
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