diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php index 25c20e0f65..dad416f93c 100644 --- a/app/Repositories/Account/AccountRepository.php +++ b/app/Repositories/Account/AccountRepository.php @@ -150,6 +150,7 @@ class AccountRepository implements AccountRepositoryInterface } else { $pct = ($diff / $account->startBalance) * 100; } + $pct = $pct > 100 ? 100 : $pct; $account->difference = $diff; $account->percentage = round($pct); }