Workaround for starting balance in performance report

View: New views
1 Messages — Rating Filter:   Alert me  

Workaround for starting balance in performance report

by Alvaro Soliverez :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello all,
I have a workaround for those times when the starting balance of an investment returns the stock quantity instead of the amount.
What I do is check first if the quantity is over zero, and the price is 1, which might indicate there is an issue with the price.
In that case, I look for previous transactions.
I get the last transaction, and calculate the price of the starting balance based on the price for that transaction.

As I said, it is just a workaround until there is a permanent fix from the engine.

Do you think this might work well enough?

I tried it here, and it seems to spit out more sensible numbers.

Regards,
Alvaro


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
KMyMoney2-developer mailing list
KMyMoney2-developer@...
https://lists.sourceforge.net/lists/listinfo/kmymoney2-developer
LightInTheBox - Buy quality products at wholesale price!