Bug 284220

Summary: Closed account still showing up in accounts combobox of "operations" tab
Product: [Applications] skrooge Reporter: Pelleter yk <yannkel.pelleter>
Component: generalAssignee: Stephane MANKOWSKI <stephane>
Status: RESOLVED FIXED    
Severity: wishlist CC: stephane
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Pelleter yk 2011-10-16 20:32:54 UTC
Version:           unspecified (using KDE 4.7.1) 
OS:                Linux

Closed accounts are still showing up in the combobox of the "operations" tab

Sadly, they are not sorted either so in my case the first account appearing when clicking operation is a closed account.

Reproducible: Always

Steps to Reproduce:
Make sure your db has a mix of open/closed accounts

Click on "operations" in the left panel.
In the operation tab, look into the droplist of "accounts" combobox

Actual Results:  
All accounts shows up, open account and closed as well

These account aren't sorted alphanumerically, they look like being sorted by db ID which is pointless for the lambda user.

Expected Results:  
A way to configure skrooge so that closed accounts do not appear anymore into the accounts combobox of operations tab.

In this combobox, account should be sorted in alphanumerical order which is the natural behaviour for most user.
Comment 1 Stephane MANKOWSKI 2011-10-17 07:11:22 UTC
Hi,

By default, Skrooge displays in this combo box only the opened accounts.
But, with the following actions you are able to get "closed" accounts:
1-Open "Accounts" page
2-Display "Closed" accounts
3-Double click on a closed account
   ==> The "Operations" page is opened with all closed accounts in the combo box. This is normal because you are on a closed account.
4-Right click on tab + "Save page state"
   ==> Now, this state (with closed account displayed) is you default state.

So, you can repair this by doing:
1-Right click on tab + "Reset page state"
2-Right click on tab + "Save page state"

I will do a correction for the sort order.
Regards,
Stephane
Comment 2 Stephane MANKOWSKI 2011-10-17 07:13:18 UTC
Git commit e77175e27f260412d149d5f0d8886c1852ba8147 by Stephane Mankowski.
Committed on 17/10/2011 at 09:12.
Pushed by smankowski into branch 'Feature'.

BUG: 284220: Closed account still showing up in accounts combobox of "operations" tab

M  +1    -0    CHANGELOG
M  +1    -1    plugins/skrooge/skrooge_operation/skgoperationpluginwidget.cpp

http://commits.kde.org/skrooge/e77175e27f260412d149d5f0d8886c1852ba8147