Support > 100%

This commit is contained in:
James Cole 2015-03-21 08:53:43 +01:00
parent 6a88c8634d
commit 05fa1b40d1

View File

@ -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);
}