Bug 424428

Summary: Budget reports is wrong once you changed time interval
Product: [Applications] kmymoney Reporter: antoine <antoine>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: CONFIRMED ---    
Severity: normal    
Priority: NOR    
Version: 5.0.8   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: default report
new time interval
sample file

Description antoine 2020-07-19 15:21:18 UTC
Created attachment 130254 [details]
default report

SUMMARY


STEPS TO REPRODUCE
1. Open a KMM file and create your own budget
2. Open the report "Comparison between budgeted and realised transactions over a year"
3. Results should ok
4. Change the time interval (last 3 month), there will be a 1 month delay for the budget



SOFTWARE/OS VERSIONS
xubuntu 20.04
Comment 1 antoine 2020-07-19 15:21:43 UTC
Created attachment 130255 [details]
new time interval
Comment 2 Thomas Baumgart 2020-07-19 16:35:01 UTC
I am unable to duplicate this with the current 5.1 version. Can you either

a) check this using the current stable AppImage version or
b) provide a test file that shows the problem.

Thanks in advance.
Comment 3 antoine 2020-07-19 17:06:45 UTC
I have been able to reproduce this issue with KMyMoney-5.1.0-5ce7527-x86_64.AppImage.

I attach a file with this issue, look at Report 1 and 2 (favorites reports)
Comment 4 antoine 2020-07-19 17:07:06 UTC
Created attachment 130258 [details]
sample file
Comment 5 Thomas Baumgart 2020-07-19 17:32:30 UTC
Problem is, that budget numbers are maintained on a monthly basis and don't have a detailed date. Since your period selection for the report is the 'last three months', the report (today) starts on the 19th. Once you change the range to 'last quarter' figures are correct.

Solution would be to force the budget reports always to begin on the first of a month. I have to think about it a bit and am open for suggestions too.