update issue templates.

This commit is contained in:
James Cole
2020-03-25 19:25:50 +01:00
parent 5445752588
commit 84bdd47109
5 changed files with 19 additions and 8 deletions

View File

@@ -470,7 +470,7 @@ class TransactionJournalFactory
// return user's default:
return app('amount')->getDefaultCurrencyByUser($this->user);
}
$result = $preference ?? $currency;
$result = ($preference ?? $currency) ?? app('amount')->getSystemCurrency();
Log::debug(sprintf('Currency is now #%d (%s) because of account #%d (%s)', $result->id, $result->code, $account->id, $account->name));
return $result;