Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/objectinfotable.cpp
Context not available. | |||||
32 | // Project Includes | 32 | // Project Includes | ||
---|---|---|---|---|---|
33 | 33 | | |||
34 | #include "mymoneyfile.h" | 34 | #include "mymoneyfile.h" | ||
35 | #include "mymoneyaccount.h" | ||||
36 | #include "mymoneyinstitution.h" | ||||
37 | #include "mymoneyprice.h" | ||||
38 | #include "mymoneypayee.h" | ||||
39 | #include "mymoneysplit.h" | ||||
40 | #include "mymoneytransaction.h" | ||||
35 | #include "mymoneyreport.h" | 41 | #include "mymoneyreport.h" | ||
36 | #include "mymoneyexception.h" | 42 | #include "mymoneyexception.h" | ||
37 | #include "kmymoneyutils.h" | 43 | #include "kmymoneyutils.h" | ||
Context not available. | |||||
141 | 147 | | |||
142 | QList<MyMoneySchedule> schedules; | 148 | QList<MyMoneySchedule> schedules; | ||
143 | 149 | | |||
144 | schedules = file->scheduleList("", MyMoneySchedule::TYPE_ANY, MyMoneySchedule::OCCUR_ANY, MyMoneySchedule::STYPE_ANY, m_config.fromDate(), m_config.toDate()); | 150 | schedules = file->scheduleList(QString(), eMyMoney::Schedule::Type::Any, eMyMoney::Schedule::Occurrence::Any, eMyMoney::Schedule::PaymentType::Any, m_config.fromDate(), m_config.toDate(), false); | ||
145 | 151 | | |||
146 | QList<MyMoneySchedule>::const_iterator it_schedule = schedules.constBegin(); | 152 | QList<MyMoneySchedule>::const_iterator it_schedule = schedules.constBegin(); | ||
147 | while (it_schedule != schedules.constEnd()) { | 153 | while (it_schedule != schedules.constEnd()) { | ||
Context not available. | |||||
246 | ReportAccount account = *it_account; | 252 | ReportAccount account = *it_account; | ||
247 | 253 | | |||
248 | if (m_config.includes(account) | 254 | if (m_config.includes(account) | ||
249 | && account.accountType() != MyMoneyAccount::Stock | 255 | && account.accountType() != eMyMoney::Account::Stock | ||
250 | && !account.isClosed()) { | 256 | && !account.isClosed()) { | ||
251 | MyMoneyMoney value; | 257 | MyMoneyMoney value; | ||
252 | accountRow[ctRank] = QLatin1Char('0'); | 258 | accountRow[ctRank] = QLatin1Char('0'); | ||
Context not available. | |||||
268 | accountRow[ctFavorite] = account.value("PreferredAccount") == QLatin1String("Yes") ? i18nc("Is this a favorite account?", "Yes") : QString(); | 274 | accountRow[ctFavorite] = account.value("PreferredAccount") == QLatin1String("Yes") ? i18nc("Is this a favorite account?", "Yes") : QString(); | ||
269 | 275 | | |||
270 | //investment accounts show the balances of all its subaccounts | 276 | //investment accounts show the balances of all its subaccounts | ||
271 | if (account.accountType() == MyMoneyAccount::Investment) { | 277 | if (account.accountType() == eMyMoney::Account::Investment) { | ||
272 | value = investmentBalance(account); | 278 | value = investmentBalance(account); | ||
273 | } else { | 279 | } else { | ||
274 | value = file->balance(account.id()); | 280 | value = file->balance(account.id()); | ||
Context not available. |