mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-06 22:21:42 +00:00
Make some charts multi-currency.
This commit is contained in:
@@ -163,6 +163,13 @@ class Steam
|
||||
|
||||
$balances[$formatted] = $startBalance;
|
||||
$currencyId = (int)$repository->getMetaValue($account, 'currency_id');
|
||||
|
||||
// use system default currency:
|
||||
if (0 === $currencyId) {
|
||||
$currency = app('amount')->getDefaultCurrencyByUser($account->user);
|
||||
$currencyId = $currency->id;
|
||||
}
|
||||
|
||||
$start->addDay();
|
||||
|
||||
// query!
|
||||
|
||||
Reference in New Issue
Block a user