Skip to content

Firefly III: a personal finances manager

Fix #9797

James Cole41ad35880dea
diff --git a/app/Support/Http/Controllers/ChartGeneration.php b/app/Support/Http/Controllers/ChartGeneration.php
index 18dbf80eac..1680a3ec5b 100644
--- a/app/Support/Http/Controllers/ChartGeneration.php
+++ b/app/Support/Http/Controllers/ChartGeneration.php
@@ -77,8 +77,9 @@ trait ChartGeneration
Log::debug(sprintf('Now at account #%d ("%s)', $account->id, $account->name));
$currency = $accountRepos->getAccountCurrency($account) ?? $default;
$useNative = $convertToNative && $default->id !== $currency->id;
- $field = $useNative ? 'native_balance' : 'balance';
+ $field = $convertToNative ? 'native_balance' : 'balance';
$currency = $useNative ? $default : $currency;
+ Log::debug(sprintf('Will use field %s', $field));
$currentSet = [
'label' => $account->name,
'currency_symbol' => $currency->symbol,
diff --git a/app/Support/Steam.php b/app/Support/Steam.php
index e1e1cc3a5c..fdfa2a039c 100644
--- a/app/Support/Steam.php
+++ b/app/Support/Steam.php
@@ -68,6 +68,7 @@ class Steam
$cache->addProperty($account->id);
$cache->addProperty('final-balance-in-range');
$cache->addProperty($start);
+ $cache->addProperty($convertToNative);
$cache->addProperty($end);
if ($cache->has()) {
return $cache->get();