mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Support > 100%
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user