Summary: | Subtotals are not correctly aggregated when (sub-)categories have the same name | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Thomas Baumgart <tbaumgart> |
Component: | reports | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 5.0.3 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kmymoney/4b7bbe834886c5ebe7fba86a68290dec4c1850bd | Version Fixed In: | 5.0.4 |
Sentry Crash Report: | |||
Attachments: | Testfile showing the problem |
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 |
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.