mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-28 01:41:14 -06:00
Support > 100%
This commit is contained in:
parent
6a88c8634d
commit
05fa1b40d1
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user