Skip to content

Firefly III: a personal finances manager

No popup when the amount is zero.

James Cole0cb0720d8b36
diff --git a/resources/views/reports/budget.blade.php b/resources/views/reports/budget.blade.php
index 32aa2d7a34..2db5d76b34 100644
--- a/resources/views/reports/budget.blade.php
+++ b/resources/views/reports/budget.blade.php
@@ -85,7 +85,11 @@
?>
@if(isset($account->budgetInformation[0]))
<td>
- <a href="{{route('reports.left-unbalanced',[$account, $year, $month])}}" class="openModal">{!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!}</a>
+ @if($account->budgetInformation[0]['amount'] + $account->balancedAmount != 0.0)
+ <a href="{{route('reports.left-unbalanced',[$account, $year, $month])}}" class="openModal">{!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!}</a>
+ @else
+ {!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!}
+ @endif
</td>
@else
<td>{!! Amount::format(0) !!}</td>