Bug 270118 - Display balance in filtered ledger
Summary: Display balance in filtered ledger
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-05 01:37 UTC by Jan
Modified: 2011-12-10 23:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan 2011-04-05 01:37:28 UTC
Version:           unspecified (using KDE 4.5.3) 
OS:                Linux

If in an investment account ledger, you enter an investment name in the search window, the balance history is not displayed. The quantities are given but you have to compute the corresponding balances manually. Is it possible to add this feature?  In case the search matches several investments, the balance should be given per investment.

Reproducible: Always

Steps to Reproduce:
In the search window of an investment account ledger, type  the name of an investment.

Actual Results:  
All activities for that investment are displayed, and a balance is given for money-operations, but not for buy/sell operations.

Expected Results:  
The balance of the number of shares is expected.

A problem may arise in case of a stock split.  The quantities given should be consistent (directly comparable), preferably in units after the last split.
Comment 1 Jack 2011-12-10 23:39:34 UTC
The problem with displaying balances if something is typed in the search window is that you may not display all the transactions necessary to calculate a correct balance.  The program doesn't know if you are searching the name of a security or something that is shown in the details column, such as an interest category.

However, I cannot understand the actual behavior I see as try to explain this.  With nothing typed in the search box, all transactions in the ledger for an investment account display a balance.  As I type more characters in the search box, some transactions are filtered out of the view, and fewer and fewer transactions display a balance.  Those balances that are displayed are correct, it seems to be the last 1 or the last n transaction per security that do show a balance, but not the same number for each security.  At first, I thought it was showing a balance if no transaction for that security were filtered out of the view, but searching on the name of a security eventually leaves either 1 or 0 balances shown, and clearly all transactions for that security are displayed.