Bug 369090

Summary: Transfers sub operation created by template has wrong date
Product: [Applications] skrooge Reporter: Christoph Vogtländer <kde>
Component: generalAssignee: Stephane MANKOWSKI <stephane>
Status: RESOLVED FIXED    
Severity: major CC: stephane
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: test file demonstrating the issue
screenshot showing wrong date

Description Christoph Vogtländer 2016-09-19 23:46:01 UTC
Creating a transfer between two accounts from a template will set (or at least shows) the date of one sub operation to the date when the template was created, not the actual date.
This breaks the report when "Transfers" is checked and the wrong date is outside the report date bounds. As only one part of the transfer is processed by the report the result is not as expected.

Reproducible: Always

Steps to Reproduce:
1. create two accounts
2. create a template to transfer money from one account to another
3. set the date of the template to e.g. 1.1.1979
4. double click the template to create a operation
5. double click on on part of the transfer to get to the suboperation group view

Actual Results:  
after step 4: date is shown correctly on the normal operations page
after step5: the date of one part of the operation is not the actual date but the date of the template

Expected Results:  
the date should always be the actual date of the operation, not the date of the template
Comment 1 Christoph Vogtländer 2016-09-19 23:47:30 UTC
Created attachment 101192 [details]
test file demonstrating the issue
Comment 2 Christoph Vogtländer 2016-09-19 23:48:17 UTC
Created attachment 101193 [details]
screenshot showing wrong date
Comment 3 Stephane MANKOWSKI 2016-09-20 07:52:21 UTC
Git commit 905eb15b4c5c319c5fc528a543e7484317a2f8c0 by Stephane Mankowski.
Committed on 20/09/2016 at 07:51.
Pushed by smankowski into branch 'master'.

Transfers sub operation created by template has wrong date

M  +1    -0    CHANGELOG
M  +1    -0    skgbankmodeler/skgoperationobject.cpp

http://commits.kde.org/skrooge/905eb15b4c5c319c5fc528a543e7484317a2f8c0