Only display budgets when there's money in the envelope or when there's money spent.

This commit is contained in:
James Cole 2015-03-27 09:43:29 +01:00
parent 88b83d8164
commit 12af05b94f

View File

@ -138,6 +138,8 @@
$sumEnvelope += $budget['amount'];
$sumLeft += $budget['amount'] + $budget['spent'];
?>
<!-- only display when relevant: -->
@if($budget['amount'] != 0 || $budget['spent'] != 0)
<tr>
<td>
@if($id > 0)
@ -150,6 +152,7 @@
<td>{!! Amount::format($budget['spent'],false) !!}</td>
<td>{!! Amount::format($budget['amount'] + $budget['spent']) !!}</td>
</tr>
@endif
@endforeach
<tr>
<td><em>Sum</em></td>