Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/csvexport/csvexportdlg.cpp
Context not available. | |||||
41 | // Project Headers | 41 | // Project Headers | ||
---|---|---|---|---|---|
42 | 42 | | |||
43 | #include "mymoneyfile.h" | 43 | #include "mymoneyfile.h" | ||
44 | #include "mymoneyaccount.h" | ||||
45 | #include "mymoneytransaction.h" | ||||
46 | #include "mymoneytransactionfilter.h" | ||||
44 | #include "icons/icons.h" | 47 | #include "icons/icons.h" | ||
45 | 48 | | |||
46 | using namespace Icons; | 49 | using namespace Icons; | ||
Context not available. | |||||
160 | account = file->accountByName(accountName); | 163 | account = file->accountByName(accountName); | ||
161 | m_accountId = account.id(); | 164 | m_accountId = account.id(); | ||
162 | MyMoneyAccount accnt; | 165 | MyMoneyAccount accnt; | ||
163 | if (account.accountType() == MyMoneyAccount::Investment) { | 166 | if (account.accountType() == eMyMoney::Account::Investment) { | ||
164 | // If this is Investment account, we need child account. | 167 | // If this is Investment account, we need child account. | ||
165 | QStringList listAccounts = account.accountList(); | 168 | QStringList listAccounts = account.accountList(); | ||
166 | QStringList::Iterator itAccounts; | 169 | QStringList::Iterator itAccounts; | ||
Context not available. | |||||
223 | while (it_account != accounts.constEnd()) { | 226 | while (it_account != accounts.constEnd()) { | ||
224 | MyMoneyAccount account((*it_account).id(), (*it_account)); | 227 | MyMoneyAccount account((*it_account).id(), (*it_account)); | ||
225 | if (!account.isClosed()) { | 228 | if (!account.isClosed()) { | ||
226 | MyMoneyAccount::accountTypeE accntType = account.accountType(); | 229 | eMyMoney::Account accntType = account.accountType(); | ||
227 | MyMoneyAccount::accountTypeE accntGroup = account.accountGroup(); | 230 | eMyMoney::Account accntGroup = account.accountGroup(); | ||
228 | if ((accntGroup == MyMoneyAccount::Liability) || ((accntGroup == MyMoneyAccount::Asset) && (accntType != MyMoneyAccount::Stock))) { // ie Asset or Liability types | 231 | if ((accntGroup == eMyMoney::Account::Liability) || ((accntGroup == eMyMoney::Account::Asset) && (accntType != eMyMoney::Account::Stock))) { // ie Asset or Liability types | ||
229 | list << account.name(); | 232 | list << account.name(); | ||
230 | m_idList << account.id(); | 233 | m_idList << account.id(); | ||
231 | } | 234 | } | ||
Context not available. |