Bug 230905

Summary: Allow change of account type (Feature Request 2872008)
Product: [Applications] kmymoney Reporter: Ian Neal <iann_bugzilla>
Component: generalAssignee: Ian Neal <iann_bugzilla>
Status: RESOLVED FIXED    
Severity: wishlist CC: kmymoney-devel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Add ability to edit Checkings, Savings and Cash account types patch v1

Description Ian Neal 2010-03-16 00:44:29 UTC
Version:           3.96.1 (using KDE 4.4.0)
Compiler:          gcc 4.4.1 
OS:                Linux
Installed from:    Fedora RPMs

It is currently impossible to change the type of an existing account. e.g. checking cannot be changed to savings. This means that if you enter a bunch of transactions into an account and then realize that it’s the wrong type, you have to recreate the entire account and re-enter all the transactions (because you can’t simply move them to the new account...)
Comment 1 Ian Neal 2010-03-20 20:03:21 UTC
Created attachment 41792 [details]
Add ability to edit Checkings, Savings and Cash account types patch v1

This patch:
* Moves isLiquidAsset() from reportaccount to mymoneyaccount.
* Changes knewaccountdlg to only add relevant item(s) to menu for when editing instead of all of them.
* Changes mymoneyfile, mymoneydatabasemgr and mymoneyseqaccessmgr to allow changes between checkings, savings and cash account types.
* Adds new tests to testModifyAccount in mymoneyfiletest to test valid and invalid account type changes.
Comment 2 Ian Neal 2010-04-05 01:02:52 UTC
SVN commit 1111141 by iann:

BUG: 230905
Allow change of account type (Feature Request 2872008)
This patch allows changes between checking, savings and cash account types.


 M  +39 -61    knewaccountdlg.cpp
 M  +6 -0      mymoneyaccount.cpp
 M  +9 -0      mymoneyaccount.h
 M  +2 -1      mymoneyfile.cpp
 M  +30 -0     mymoneyfiletest.cpp
 M  +2 -1      mymoneydatabasemgr.cpp
 M  +4 -3      mymoneyseqaccessmgr.cpp
 M  +0 -8      reportaccount.cpp
 M  +0 -6      reportaccount.h


WebSVN link: http://websvn.kde.org/?view=rev&revision=1111141