Bug 369090 - Transfers sub operation created by template has wrong date
Summary: Transfers sub operation created by template has wrong date
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-19 23:46 UTC by Christoph Vogtländer
Modified: 2016-09-20 07:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
test file demonstrating the issue (534.03 KB, application/x-skgc)
2016-09-19 23:47 UTC, Christoph Vogtländer
Details
screenshot showing wrong date (24.27 KB, image/png)
2016-09-19 23:48 UTC, Christoph Vogtländer
Details

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