mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
@@ -511,7 +511,7 @@ class AccountController extends Controller
|
|||||||
foreach ($return as $key => $info) {
|
foreach ($return as $key => $info) {
|
||||||
if ('balance' !== $key && 'native_balance' !== $key) {
|
if ('balance' !== $key && 'native_balance' !== $key) {
|
||||||
// assume it's a currency:
|
// assume it's a currency:
|
||||||
$setCurrency = $this->currencyRepository->findByCode($key);
|
$setCurrency = $this->currencyRepository->findByCode((string) $key);
|
||||||
$info['currency_symbol'] = $setCurrency->symbol;
|
$info['currency_symbol'] = $setCurrency->symbol;
|
||||||
$info['currency_code'] = $setCurrency->code;
|
$info['currency_code'] = $setCurrency->code;
|
||||||
$info['label'] = sprintf('%s (%s)', $account->name, $setCurrency->symbol);
|
$info['label'] = sprintf('%s (%s)', $account->name, $setCurrency->symbol);
|
||||||
|
Reference in New Issue
Block a user