Bug 289363 - Finished scheduled transaction cannot be duplicated
Summary: Finished scheduled transaction cannot be duplicated
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: openSUSE Linux
: NOR minor
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 17:05 UTC by Thomas Baumgart
Modified: 2012-01-12 18:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
I was not able to reproduce this with this file (4.75 KB, application/x-kmymoney)
2012-01-06 13:11 UTC, Cristian Oneț
Details
Sample file to show the problem (4.82 KB, application/x-kmymoney)
2012-01-06 13:35 UTC, Thomas Baumgart
Details

Note You need to log in before you can comment on or make changes to this bug.
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