Bug 410391 - Unable to change forecast days
Summary: Unable to change forecast days
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.0.5
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-30 11:54 UTC by Xwang
Modified: 2019-09-21 08:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.0.7
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xwang 2019-07-30 11:54:31 UTC
SUMMARY
I'm not able to change how many days forward to execute the forecast.
If I change the default 365 days it keeps calculating the forecast for 365 days.
The same happens for the length in days of the cycle (it use always 30 days)

STEPS TO REPRODUCE
1. Go to forecast
2. Change forecast days from 365 to 30
3. Click on the Forecast button on the right

OBSERVED RESULT
On click forecast days is automatically set to 365 agin and the forecast is made for 365 days grouped in 30 days 

EXPECTED RESULT
The forecast should be executed for the requested forecast days only

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Archlinux
(available in About System)

KDE Frameworks 5.60.0
Qt 5.13.0 (compiled with 5.13.0)

ADDITIONAL INFORMATION
The same happens since some versions so I do not know exactly when it has started to misbehave. I think it has happened with 5.0.0, but I'm not sure
Comment 1 Thomas Baumgart 2019-07-31 19:53:10 UTC
Workaround: use the plugin settings to change the values. The plugin settings should only set the default values after program start but apparently have a higher priority. Needs to be fixed.
Comment 2 Xwang 2019-07-31 20:00:05 UTC
I can confirm that the workaround works :-)
Comment 3 Thomas Baumgart 2019-09-21 08:21:26 UTC
Git commit 8d294ef48f1aa0b6e88773b3ec7ea48e6f364a26 by Thomas Baumgart.
Committed on 21/09/2019 at 08:21.
Pushed by tbaumgart into branch '5.0'.

Respect parameter changes performed by user

Changing the parameters in the forecast view did not have any effect,
because when the user pressed the forecast button or changed the tab in
the view they were reset to their default settings.

This change fixes the problem.
FIXED-IN: 5.0.7

M  +0    -1    kmymoney/plugins/views/forecast/kforecastview.cpp

https://commits.kde.org/kmymoney/8d294ef48f1aa0b6e88773b3ec7ea48e6f364a26