Bug 289363

Summary: Finished scheduled transaction cannot be duplicated
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: I was not able to reproduce this with this file
Sample file to show the problem

Description Thomas Baumgart 2011-12-19 17:05:50 UTC
Version:           SVN trunk (using KDE 1.2) 
OS:                Linux

A scheduled transaction that is already finished cannot be duplicated to create a new one.

Reproducible: Always

Steps to Reproduce:
Select finished scheduled transaction, open context menu and select 'Duplicate'

Actual Results:  
Error message pops up with information about invalid next due date

Expected Results:  
New scheduled transaction is created.

Looks like we need to adjust the next due date before we try to store the copy.
Comment 1 Cristian Oneț 2012-01-06 13:11:40 UTC
Created attachment 67508 [details]
I was not able to reproduce this with this file

Did something changed since you've reported this or your file had something special in it?
Comment 2 Thomas Baumgart 2012-01-06 13:35:22 UTC
Created attachment 67509 [details]
Sample file to show the problem

Try this one. It happened to me with a schedule of 'once' and only if the file was loaded from disk. In case the one time payment was entered, I could create a duplicate w/o a problem. Then I saved the file, re-opened it and was not able to create a duplicate anymore.
Comment 3 Cristian Oneț 2012-01-12 18:09:15 UTC
Git commit 9c9270fdb8da146410192abde68b87fa7cb792cc by Cristian Oneț.
Committed on 12/01/2012 at 19:06.
Pushed by conet into branch 'master'.

M  +4    -1    kmymoney/kmymoney.cpp

http://commits.kde.org/kmymoney/9c9270fdb8da146410192abde68b87fa7cb792cc
Comment 4 Cristian Oneț 2012-01-12 18:09:47 UTC
Git commit 53198057a217dde7b70d32ec2997da56e49f4899 by Cristian Oneț.
Committed on 12/01/2012 at 19:06.
Pushed by conet into branch '4.6'.
(cherry picked from commit 9c9270fdb8da146410192abde68b87fa7cb792cc)

M  +4    -1    kmymoney/kmymoney.cpp

http://commits.kde.org/kmymoney/53198057a217dde7b70d32ec2997da56e49f4899