Commit cb4ab009 by Azhan Hannan

Log Pia #107, #108, #109

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