mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +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'];
|
$sumEnvelope += $budget['amount'];
|
||||||
$sumLeft += $budget['amount'] + $budget['spent'];
|
$sumLeft += $budget['amount'] + $budget['spent'];
|
||||||
?>
|
?>
|
||||||
|
<!-- only display when relevant: -->
|
||||||
|
@if($budget['amount'] != 0 || $budget['spent'] != 0)
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@if($id > 0)
|
@if($id > 0)
|
||||||
@@ -150,6 +152,7 @@
|
|||||||
<td>{!! Amount::format($budget['spent'],false) !!}</td>
|
<td>{!! Amount::format($budget['spent'],false) !!}</td>
|
||||||
<td>{!! Amount::format($budget['amount'] + $budget['spent']) !!}</td>
|
<td>{!! Amount::format($budget['amount'] + $budget['spent']) !!}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
<tr>
|
<tr>
|
||||||
<td><em>Sum</em></td>
|
<td><em>Sum</em></td>
|
||||||
|
Reference in New Issue
Block a user