mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Only display budgets when there's money in the envelope or when there's money spent.
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user