Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix percentage.
James Colec913de3c8bbf
diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.phpindex c114f803bc..dea1ace150 100644--- a/app/Repositories/Account/AccountRepository.php+++ b/app/Repositories/Account/AccountRepository.php@@ -151,7 +151,7 @@ class AccountRepository implements AccountRepositoryInterfaceif ($diff >= 0 && $account->startBalance > 0) {$pct = ($diff / $account->startBalance) * 100;} else {- $pct = 0;+ $pct = 100;}}$pct = $pct > 100 ? 100 : $pct;