Bug 435762 - Income&Expenditure widget don't match with Income&Expense report
Summary: Income&Expenditure widget don't match with Income&Expense report
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: Trunk from git
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-15 09:50 UTC by Jesus M Diaz
Modified: 2023-02-19 18:11 UTC (History)
2 users (show)

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


Attachments
Sample Skrooge file (616.02 KB, application/x-skgc)
2021-04-15 09:50 UTC, Jesus M Diaz
Details
Sample Skrooge file, second attempt (616.02 KB, application/x-skgc)
2021-04-15 20:35 UTC, Jesus M Diaz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesus M Diaz 2021-04-15 09:50:15 UTC
Created attachment 137629 [details]
Sample Skrooge file

SUMMARY

Income&Expenditure widget don't match with Income&Expense report.

Payment of a loan as a split transaction: transfer from payment account to loan account + interest payment as expense.

Dashboard widget tracks the whole transaction as expenditure, showing the two sub-transactions

Report finds three transactions: the interest payment, the outcome transfer from the payment account and the income transfer to the loan account.

STEPS TO REPRODUCE
1. Create a loan payment transaction merging two operations: transfer from payment account to loan account and interest payment as expense.
2. Add Income&Expenditure widget to dashboard for relevant period
3. Open income&outcome report for relevant period

OBSERVED RESULT
Income&Expenditure widget don't match with Income&Expense report

EXPECTED RESULT
Income&Expenditure widget matching with Income&Expense report

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Slackware 14.2 x86_64 (post 14.2 -current)
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: KDE Frameworks 5.81.0
Qt Version: Qt 5.15.2 (built against 5.15.2)

ADDITIONAL INFORMATION
Comment 1 Stephane MANKOWSKI 2021-04-15 20:23:51 UTC
Hi,

I'm not able to open your sample file.
It seems to be protected by a password.
Comment 2 Jesus M Diaz 2021-04-15 20:34:18 UTC
That's weird. It is not protected and I have downloaded it and it opened fine, so it's not corrupted apparently.
I uploaded it again, just in case.
Comment 3 Jesus M Diaz 2021-04-15 20:35:10 UTC
Created attachment 137642 [details]
Sample Skrooge file, second attempt
Comment 4 Jesus M Diaz 2021-04-16 18:21:02 UTC
Easier way to reproduce: from the dashboard widget, click on settings and then 'open report'.

The values don't match (incomes, the 'loan' transfer)
Comment 5 Stephane MANKOWSKI 2023-02-08 14:36:03 UTC
Hello, 
I'm trying to analyze this ticket after a long break but I still can't open the provided file (password requested).
Comment 6 Jesus M Diaz 2023-02-08 16:17:16 UTC
That's what you said for the first file, but I uploaded a second one. Have you tried with this?

Let me know if you were able to open it or not. If it still fails, I can try any other way to send you the file.
Comment 7 Stephane MANKOWSKI 2023-02-08 16:35:52 UTC
Yes, same issue on the second one.
Comment 8 Jesus M Diaz 2023-02-08 16:40:25 UTC
I sent it to the email address you have here, let's see if you can open it that way, because it should not be password protected, and I can open it without any password.
Comment 9 Stephane MANKOWSKI 2023-02-19 18:11:28 UTC
Git commit daba60171e2a7391d2f5a27364b1bd62d64849bb by Stephane MANKOWSKI.
Committed on 19/02/2023 at 18:11.
Pushed by smankowski into branch 'master'.

Income&Expenditure widget don't match with Income&Expense report

M  +2    -1    CHANGELOG
M  +13   -14   plugins/skrooge/default/income_vs_expenditure.qml
M  +10   -3    plugins/skrooge/skrooge_operation/skgoperationboardwidgetqml.cpp
M  +8    -4    skgbankmodeler/skgreportbank.cpp
M  +13   -6    skgbasegui/skghtmlboardwidget.cpp

https://invent.kde.org/office/skrooge/commit/daba60171e2a7391d2f5a27364b1bd62d64849bb