Bug 267531 - kmymoney 4.5.3 get an error when delete some payees
Summary: kmymoney 4.5.3 get an error when delete some payees
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: SVN
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-03 07:54 UTC by Alexander Trubitsyn
Modified: 2013-04-15 09:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
anon kmm file with delete payee bug (1.04 MB, text/xml)
2013-04-15 09:03 UTC, Oliver Becker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Trubitsyn 2011-03-03 07:54:42 UTC
Version:           SVN trunk (using KDE 4.4.4) 
OS:                Linux

If you have two similar payees xxx, yyy and try to transfer all entities from yyy to xxx, you try to delete yyy and replace it by the xxx. But you can't remove some payee - kmm get this error.
Sometimes you can merge both payees by remove xxx instead of yyy.
But on some payees it didn't work and kmm can't remove nor xxx nor yyy.

Reproducible: Sometimes

Steps to Reproduce:
1.Open kmm
2.open Payees
3.Select some
4.press X (remove) button or right mouse button & "Delete payee"
5 Say Yes on answer 'do you want to remove payee xxx'

Actual Results:  
Kmm open window with error "Can't remove payee" & remarks
Cannot remove payee that is still referenced to a transaction добавлено /home/alex/src/kmymoney/kmymoney/mymoney/storage/mymoneyseqaccessmgr.cpp:215

Expected Results:  
kmm asks if i have to transfer any entities to other payee or remove it

OS: Linux (x86_64) release 2.6.34.7-0.7-desktop
Compiler: gcc
Comment 1 Thomas Baumgart 2011-03-04 08:45:30 UTC
That is very strange, as all the logic is present and works well for me. So I expect some pecularities with your data. Please do the following:

a) create an anonymized file (see manual how to do it)
b) make sure that the problem still exists while using the anonymized version of the file
   it might be a bit tricky to find out which payee to delete. If unsure how to figure out, please ask here
c) send a gzipped version of your anonymized file to me or the developer list for further analysis
Comment 2 Thomas Baumgart 2011-06-04 10:12:17 UTC
Any news on this one?
Comment 3 Thomas Baumgart 2011-07-05 19:29:30 UTC
Still no answer?
Comment 4 Oliver Becker 2013-04-15 09:03:16 UTC
Created attachment 78922 [details]
anon kmm file with delete payee bug
Comment 5 Oliver Becker 2013-04-15 09:05:03 UTC
I have the same problem when deleting some payees even if they don't have any more transactions on them. I have created an attachment and the affected payees are P000068, P000109 and P000165. The error message when trying to delete them is:

Cannot remove payee that is still referenced to a transaction thrown in /var/tmp/portage/app-office/kmymoney-4.6.3/work/kmymoney-4.6.3/kmymoney/mymoney/storage/mymoneyseqaccessmgr.cpp:215
Comment 6 Oliver Becker 2013-04-15 09:23:51 UTC
I looked into the XML file and it might be a problem with split transactions that add an value X to an payee and remove the same value X directly after from the same payee and result in an value of 0. They seem to be hidden in any views i looked into so far.
But this is just a guess, I hope it helps.