mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 09:22:33 +00:00
Some math fixes. Not bugs.
This commit is contained in:
@@ -70,6 +70,7 @@ class HomeController extends Controller
|
||||
{
|
||||
$types = Config::get('firefly.accountTypesByIdentifier.asset');
|
||||
$count = $repository->countAccounts($types);
|
||||
bcscale(2);
|
||||
|
||||
|
||||
if ($count == 0) {
|
||||
@@ -92,7 +93,7 @@ class HomeController extends Controller
|
||||
|
||||
$savingsTotal = 0;
|
||||
foreach ($savings as $savingAccount) {
|
||||
$savingsTotal += Steam::balance($savingAccount, $end);
|
||||
$savingsTotal = bcadd($savingsTotal, Steam::balance($savingAccount, $end));
|
||||
}
|
||||
|
||||
$sum = $repository->sumOfEverything();
|
||||
|
Reference in New Issue
Block a user