Bug 462149

Summary: Create a New Report results in the new report being empty.
Product: [Applications] kmymoney Reporter: jesse <jvapr27>
Component: reportsAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example of the report that is created with empty values.
Example with the Networth report

Description jesse 2022-11-23 05:35:21 UTC
SUMMARY
Using Master: 
If you create a new report, the new report appears but all the data is empty. Meaning it all shows as zeros. I will attache a screenshot if possible to help describe the issue.

 


STEPS TO REPRODUCE
1. Open a kMyMoney book
2. proceed to report, open any report 
3. click on create new report.

OBSERVED RESULT
the new report is shown but it is all empty, it shows zeros for all the values. 

EXPECTED RESULT
The new report should open but not be empty or show all the fields as zeros. 

SOFTWARE/OS VERSIONS
Windows: N/A
macOS: N/A
Linux/KDE Plasma: Fedora Gnome  37
KDE Frameworks Version: KDE Frameworks Version 5.99.0
Qt Version: Version 5.15.5 (built against 5.15.5)

ADDITIONAL INFORMATION
Using master... 
KMyMoney - Version 5.1.80-27c8a9a30
Comment 1 jesse 2022-11-23 05:38:49 UTC
Created attachment 153958 [details]
Example of the report that is created with empty values.

Example of the new report created with empty values.
Comment 2 Jack 2022-11-23 16:51:09 UTC
I can't reproduce this.  Does it happen with any report?  
What was the base report for the one you show in the attachment?   The title shows "Where the money went this year" but a new report should always start with "Copy of ".  What filters are in place for the report you show?  
Do you see any differences between the configuration of the "New" report and the one it is a copy of?
Comment 3 jesse 2022-11-24 00:06:47 UTC
(In reply to Jack from comment #2)
> I can't reproduce this.  Does it happen with any report?  
> What was the base report for the one you show in the attachment?   The title
> shows "Where the money went this year" but a new report should always start
> with "Copy of ".  What filters are in place for the report you show?  
> Do you see any differences between the configuration of the "New" report and
> the one it is a copy of?

Yes the new reports do start with 'Copy of' but I remove that anyways, and just name it something unique. 

As for recreating it, I can recreate it in master only. 

If you use the stable releases, it works fine. 

My report is called Where Money went - This month. It is a report where I show the transfers  then I hit the new button, and the blank report shows up. 

When I try to copy another report.. 

The Net Worth by Month, for example. This one is out of the box report. 

If I hit the New Report button, it will open the Report configuration dialog box, then when you close the dialogue  box, the report is empty.(all zeros)

See new attachment named example_net_worth
Comment 4 jesse 2022-11-24 00:08:31 UTC
Created attachment 153984 [details]
Example with the Networth report

Let me know if this helps
Comment 5 Jack 2022-11-24 01:10:35 UTC
I'm also using master.  It may take me some time to work on this, because I'm currently getting a crash when I "Apply" from a report configuration dialog.  I don't think that is related to this problem, but who knows.
One further question, however.  If you close one of your new reports, and then open it again, does it still show all 0 amounts, or has it reverted to the proper data?  What happens if you change the configuration filter tab to include more or fewer accounts?
Comment 6 jesse 2022-11-24 03:33:33 UTC
Hi Jack, 

Yes, the report still comes up blank after closing it and re-opening it. 

If I change the number of accounts, it remains the same. Still all zeros. 

It is almost like it lost the source of the data.