mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Some TODO's for the future.
This commit is contained in:
@@ -127,6 +127,7 @@ class SelectAccountsHandler implements YnabJobConfigurationInterface
|
||||
/** @var Account $account */
|
||||
foreach ($ffAccounts as $account) {
|
||||
$accountId = $account->id;
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepository->getMetaValue($account, 'currency_id');
|
||||
$currency = $this->getCurrency($currencyId);
|
||||
$array[$accountId] = [
|
||||
|
@@ -170,6 +170,7 @@ class SelectBudgetHandler implements YnabJobConfigurationInterface
|
||||
}
|
||||
/** @var Account $account */
|
||||
foreach ($this->accounts as $account) {
|
||||
// TODO we can use getAccountCurrency() instead
|
||||
$currencyId = (int)$this->accountRepository->getMetaValue($account, 'currency_id');
|
||||
Log::debug(sprintf('Currency of %s is %d (looking for %d).', $account->name, $currencyId, $currency->id));
|
||||
if ($currencyId === $currency->id) {
|
||||
|
Reference in New Issue
Block a user