mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-12-12 01:42:32 +00:00
Clean up commands.
This commit is contained in:
@@ -310,8 +310,8 @@ class Steam
|
||||
public function finalAccountBalance(Account $account, Carbon $date): array
|
||||
{
|
||||
Log::debug(sprintf('Now in finalAccountBalance(#%d, "%s", "%s")', $account->id, $account->name, $date->format('Y-m-d H:i:s')));
|
||||
$native = app('amount')->getDefaultCurrencyByUserGroup($account->user->userGroup);
|
||||
$convertToNative = app('preferences')->getForUser($account->user, 'convert_to_native', false)->data;
|
||||
$native = \FireflyIII\Support\Facades\Amount::getDefaultCurrencyByUserGroup($account->user->userGroup);
|
||||
$convertToNative = \FireflyIII\Support\Facades\Amount::convertToNative($account->user);
|
||||
$accountCurrency = $this->getAccountCurrency($account);
|
||||
$hasCurrency = null !== $accountCurrency;
|
||||
$currency = $hasCurrency ? $accountCurrency : $native;
|
||||
|
||||
Reference in New Issue
Block a user