Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/wizards/newaccountwizard/knewaccountwizard.cpp
Show First 20 Lines • Show All 197 Lines • ▼ Show 20 Line(s) | 182 | if (d->m_account.isLoan() // we're creating a loan | |||
---|---|---|---|---|---|
198 | MyMoneyMoney shares; | 198 | MyMoneyMoney shares; | ||
199 | KCurrencyCalculator::setupSplitPrice(shares, t, s, QMap<QString, MyMoneyMoney>(), this); | 199 | KCurrencyCalculator::setupSplitPrice(shares, t, s, QMap<QString, MyMoneyMoney>(), this); | ||
200 | s.setShares(shares); | 200 | s.setShares(shares); | ||
201 | t.addSplit(s); | 201 | t.addSplit(s); | ||
202 | } | 202 | } | ||
203 | return t; | 203 | return t; | ||
204 | } | 204 | } | ||
205 | 205 | | |||
206 | const MyMoneyAccount& Wizard::parentAccount() | 206 | MyMoneyAccount Wizard::parentAccount() | ||
207 | { | 207 | { | ||
208 | Q_D(Wizard); | 208 | Q_D(Wizard); | ||
209 | return d->m_accountTypePage->allowsParentAccount() | 209 | return d->m_accountTypePage->allowsParentAccount() | ||
210 | ? d->m_hierarchyPage->parentAccount() | 210 | ? d->m_hierarchyPage->parentAccount() | ||
211 | : (d->m_accountTypePage->accountType() == Account::Type::Loan | 211 | : (d->m_accountTypePage->accountType() == Account::Type::Loan | ||
212 | ? d->m_generalLoanInfoPage->parentAccount() | 212 | ? d->m_generalLoanInfoPage->parentAccount() | ||
213 | : d->m_accountTypePage->parentAccount()); | 213 | : d->m_accountTypePage->parentAccount()); | ||
214 | } | 214 | } | ||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |