mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix #3992
This commit is contained in:
parent
e0526508cb
commit
045cec4421
@ -54,6 +54,7 @@ class Steam
|
|||||||
$cache->addProperty($account->id);
|
$cache->addProperty($account->id);
|
||||||
$cache->addProperty('balance');
|
$cache->addProperty('balance');
|
||||||
$cache->addProperty($date);
|
$cache->addProperty($date);
|
||||||
|
$cache->addProperty($currency ? $currency->id : 0);
|
||||||
if ($cache->has()) {
|
if ($cache->has()) {
|
||||||
return $cache->get(); // @codeCoverageIgnore
|
return $cache->get(); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
@ -186,7 +187,7 @@ class Steam
|
|||||||
$end->addDay();
|
$end->addDay();
|
||||||
$balances = [];
|
$balances = [];
|
||||||
$formatted = $start->format('Y-m-d');
|
$formatted = $start->format('Y-m-d');
|
||||||
$startBalance = $this->balance($account, $start);
|
$startBalance = $this->balance($account, $start, $currency);
|
||||||
|
|
||||||
/** @var AccountRepositoryInterface $repository */
|
/** @var AccountRepositoryInterface $repository */
|
||||||
|
|
||||||
@ -196,7 +197,7 @@ class Steam
|
|||||||
$repository->setUser($account->user);
|
$repository->setUser($account->user);
|
||||||
$currency = $repository->getAccountCurrency($account) ?? app('amount')->getDefaultCurrencyByUser($account->user);
|
$currency = $repository->getAccountCurrency($account) ?? app('amount')->getDefaultCurrencyByUser($account->user);
|
||||||
}
|
}
|
||||||
$currencyId = $currency->id;
|
$currencyId = (int)$currency->id;
|
||||||
|
|
||||||
$start->addDay();
|
$start->addDay();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user