From c913de3c8bbf30c4b167cec5bb911de21c69ff34 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 21 Mar 2015 08:56:24 +0100 Subject: [PATCH] Fix percentage. --- app/Repositories/Account/AccountRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index c114f803bc..dea1ace150 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -151,7 +151,7 @@ class AccountRepository implements AccountRepositoryInterface if ($diff >= 0 && $account->startBalance > 0) { $pct = ($diff / $account->startBalance) * 100; } else { - $pct = 0; + $pct = 100; } } $pct = $pct > 100 ? 100 : $pct;