Bug 422196

Summary: Budget view displays all account types
Product: [Applications] kmymoney Reporter: Robert Szczesiak <dev.rszczesiak>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: me
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In: 5.1.0
Attachments: All account types in the Budgets view
Sample file - budget_test.kmy
Only Income and Expense categories after fix

Description Robert Szczesiak 2020-05-28 19:37:02 UTC
Created attachment 128876 [details]
All account types in the Budgets view

SUMMARY
In the Budgets view all account types, including Asset, Liability, and Equity, are displayed.

STEPS TO REPRODUCE
1. Open the attached budget_test.kmy file.
2. Go to the Budgets view.

OBSERVED RESULT
On the right hand side of the view there is an account hierarchy tree which displays all account types, including Asset, Liability, and Equity.

EXPECTED RESULT
Only Income and Expense categories should be displayed in the Budgets view.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Please find attached screenshots presenting the issue.
Comment 1 Robert Szczesiak 2020-05-28 19:37:30 UTC
Created attachment 128877 [details]
Sample file - budget_test.kmy
Comment 2 Robert Szczesiak 2020-05-28 19:46:50 UTC
Created attachment 128878 [details]
Only Income and Expense categories after fix
Comment 3 Robert Szczesiak 2020-05-29 14:36:38 UTC
Git commit 8ae14acc9e894f07bffd1532d67be497ef7a9493 by Robert Szczesiak.
Committed on 29/05/2020 at 06:21.
Pushed by tbaumgart into branch 'master'.

Fix budget view displaying all account types

In the Budgets view all account types, including Asset, Liability, and
Equity, were displayed.

This commit solves the issue so that only Income and Exponse catergories
are displayed in the Budgets view.
Signed-off-by: Robert Szczesiak <dev.rszczesiak@gmail.com>

M  +2    -4    kmymoney/widgets/budgetviewproxymodel.cpp

https://invent.kde.org/office/kmymoney/commit/8ae14acc9e894f07bffd1532d67be497ef7a9493