getAccountsByType( [ AccountType::DEFAULT, AccountType::ASSET, AccountType::EXPENSE, AccountType::BENEFICIARY, AccountType::REVENUE, ] ); $list = []; /** @var Account $account */ foreach ($set as $account) { $name = $account->name; $iban = $account->iban ?? ''; if (strlen($iban) > 0) { $name .= ' (' . $account->iban . ')'; } $list[$account->id] = $name; } asort($list); $list = [0 => trans('csv.do_not_map')] + $list; return $list; } }