[Kmymoney-devel] [Bug 246815] Cannot create Loan account when I lend money

Cristian Onet onet.cristian at gmail.com
Fri Aug 6 12:03:07 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=246815





--- Comment #10 from Cristian Onet <onet cristian gmail com>  2010-08-06 12:03:06 ---
(In reply to comment #9)
> Actually, that display on the summary page is done on purpose. It beats me why
> they did it, but that's existing code.
> 
> -----------------------
> if (acc.accountType() == MyMoneyAccount::AssetLoan)
>     m_dataList->append(QString(i18n("Type") + ": %1").arg(i18n("Loan")));
>   else
>     m_dataList->append(QString(i18n("Type") + ":
> %1").arg(m_wizard->m_accountTypePage->m_typeSelection->currentText()));
> -----------------------
> 
> Finish the wizard and you'll see it creates an asset loan.

I'll test this when I get home but frankly I don't see how finishing the wizard
will create an account of type 'MyMoneyAccount::AssetLoan'.

Isn't the last call to Wizard::account() done in KMyMoneyApp::slotAccountNew()
wizard->account()? 
Which in turn will set the account type to
m_account.setAccountType(m_accountTypePage->accountType()); which in turn is
set by your commit to 'MyMoneyAccount::Loan', is this right?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list