From 0cb0720d8b3609dff23d09a4fad4aea47bb55dbd Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 4 Mar 2015 20:57:40 +0100 Subject: [PATCH] No popup when the amount is zero. --- resources/views/reports/budget.blade.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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])) - {!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!} + @if($account->budgetInformation[0]['amount'] + $account->balancedAmount != 0.0) + {!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!} + @else + {!! Amount::format($account->budgetInformation[0]['amount'] + $account->balancedAmount) !!} + @endif @else {!! Amount::format(0) !!}