Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/converter/tests/matchfinder-test.cpp
Context not available. | |||||
77 | 77 | | |||
---|---|---|---|---|---|
78 | 78 | | |||
79 | account->setName("Expenses account"); | 79 | account->setName("Expenses account"); | ||
80 | account->setAccountType(MyMoneyAccount::Expense); | 80 | account->setAccountType(eMyMoney::Account::Expense); | ||
81 | account->setOpeningDate(QDate(2012, 12, 01)); | 81 | account->setOpeningDate(QDate(2012, 12, 01)); | ||
82 | account->setCurrencyId(MyMoneyFile::instance()->baseCurrency().id()); | 82 | account->setCurrencyId(MyMoneyFile::instance()->baseCurrency().id()); | ||
83 | 83 | | |||
84 | otherAccount->setName("Some other account"); | 84 | otherAccount->setName("Some other account"); | ||
85 | otherAccount->setAccountType(MyMoneyAccount::Expense); | 85 | otherAccount->setAccountType(eMyMoney::Account::Expense); | ||
86 | otherAccount->setOpeningDate(QDate(2012, 12, 01)); | 86 | otherAccount->setOpeningDate(QDate(2012, 12, 01)); | ||
87 | otherAccount->setCurrencyId(MyMoneyFile::instance()->baseCurrency().id()); | 87 | otherAccount->setCurrencyId(MyMoneyFile::instance()->baseCurrency().id()); | ||
88 | 88 | | |||
Context not available. | |||||
138 | MyMoneyTransaction transaction = buildDefaultTransaction(); | 138 | MyMoneyTransaction transaction = buildDefaultTransaction(); | ||
139 | transaction.setPostDate(tomorrow); | 139 | transaction.setPostDate(tomorrow); | ||
140 | 140 | | |||
141 | MyMoneySchedule nonOverdueSchedule("schedule name", MyMoneySchedule::TYPE_TRANSFER, MyMoneySchedule::OCCUR_MONTHLY, 1, MyMoneySchedule::STYPE_BANKTRANSFER, tomorrow, tomorrow.addMonths(2), false, false); | 141 | MyMoneySchedule nonOverdueSchedule("schedule name", eMyMoney::Schedule::Type::Transfer, eMyMoney::Schedule::Occurrence::Monthly, 1, eMyMoney::Schedule::PaymentType::BankTransfer, tomorrow, tomorrow.addMonths(2), false, false); | ||
142 | nonOverdueSchedule.setTransaction(transaction); | 142 | nonOverdueSchedule.setTransaction(transaction); | ||
143 | 143 | | |||
144 | return nonOverdueSchedule; | 144 | return nonOverdueSchedule; | ||
Context not available. |