mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix percentage.
This commit is contained in:
parent
bbc7b54a38
commit
c913de3c8b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user