Bug 406525 - Subtotals are not correctly aggregated when (sub-)categories have the same name
Summary: Subtotals are not correctly aggregated when (sub-)categories have the same name
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: reports (show other bugs)
Version: 5.0.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-14 10:51 UTC by Thomas Baumgart
Modified: 2019-04-14 11:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.0.4


Attachments
Testfile showing the problem (1.03 KB, application/x-kmymoney)
2019-04-14 10:51 UTC, Thomas Baumgart
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Baumgart 2019-04-14 10:51:12 UTC
Created attachment 119409 [details]
Testfile showing the problem

STEPS TO REPRODUCE
1. Load the attached test file
2. Open a transaction by category report

OBSERVED RESULT
Subtotal for Expense:Category A is missing
Subtotal for Expense is missing
Amount of Subtotal Income:Category A is wrong

EXPECTED RESULT
Subtotal for Expense:Category A is present
Subtotal for Expense is present
All reported amounts are correct

ADDITIONAL INFORMATION:
This only shows up if a the category type (e.g. income, expense) and the sub-category name change and the top-level category name is the same.
Comment 1 Thomas Baumgart 2019-04-14 11:52:53 UTC
Git commit 4b7bbe834886c5ebe7fba86a68290dec4c1850bd by Thomas Baumgart.
Committed on 14/04/2019 at 11:50.
Pushed by tbaumgart into branch '5.0'.

Fix subtotals

Subtotals in e.g transaction reports are not correctly calculated and
shown. This only shows up if a the category type (e.g. income, expense)
and the sub-category name change and the top-level category name is the
same.

This change fixes the problem so that all sub-totals are calculated and
presented correctly.
FIXED-IN: 5.0.4

M  +71   -63   kmymoney/plugins/views/reports/core/querytable.cpp

https://commits.kde.org/kmymoney/4b7bbe834886c5ebe7fba86a68290dec4c1850bd