Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kreportsview.cpp
Show First 20 Lines • Show All 655 Lines • ▼ Show 20 Line(s) | |||||
656 | 656 | | |||
657 | void KReportsView::slotReportAccountTransactions() | 657 | void KReportsView::slotReportAccountTransactions() | ||
658 | { | 658 | { | ||
659 | Q_D(KReportsView); | 659 | Q_D(KReportsView); | ||
660 | // Generate a transaction report that contains transactions for only the | 660 | // Generate a transaction report that contains transactions for only the | ||
661 | // currently selected account. | 661 | // currently selected account. | ||
662 | if (!d->m_currentAccount.id().isEmpty()) { | 662 | if (!d->m_currentAccount.id().isEmpty()) { | ||
663 | MyMoneyReport report( | 663 | MyMoneyReport report( | ||
664 | MyMoneyReport::eAccount, | 664 | MyMoneyReport::Row::Account, | ||
665 | MyMoneyReport::eQCnumber | MyMoneyReport::eQCpayee | MyMoneyReport::eQCcategory, | 665 | MyMoneyReport::QueryColumns::Number | MyMoneyReport::QueryColumns::Payee | MyMoneyReport::QueryColumns::Category, | ||
666 | eMyMoney::TransactionFilter::Date::YearToDate, | 666 | eMyMoney::TransactionFilter::Date::YearToDate, | ||
667 | MyMoneyReport::eDetailAll, | 667 | MyMoneyReport::eDetailAll, | ||
668 | i18n("%1 YTD Account Transactions", d->m_currentAccount.name()), | 668 | i18n("%1 YTD Account Transactions", d->m_currentAccount.name()), | ||
669 | i18n("Generated Report") | 669 | i18n("Generated Report") | ||
670 | ); | 670 | ); | ||
671 | report.setGroup(i18n("Transactions")); | 671 | report.setGroup(i18n("Transactions")); | ||
672 | report.addAccount(d->m_currentAccount.id()); | 672 | report.addAccount(d->m_currentAccount.id()); | ||
673 | emit switchViewRequested(View::Reports); | 673 | emit switchViewRequested(View::Reports); | ||
Show All 14 Lines |