Bug 173907 - Fraction on new securities is not always honored
Summary: Fraction on new securities is not always honored
Status: RESOLVED FIXED
Alias: None
Product: kmymoney2
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Development Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-30 17:04 UTC by Bob Igo
Modified: 2008-10-30 20:35 UTC (History)
1 user (show)

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 Bob Igo 2008-10-30 17:04:27 UTC
Version:           0.9.2 CVS (using KDE 3.5.10)
OS:                Linux
Installed from:    Ubuntu Packages

The first time a new security is used in a new investment account, the "Fraction" (precision) of the shares owned defaults to 1/100, even if 1/1000 is chosen during the security creation process.

How to reproduce: Set up a new investment account.  Choose Add Shares, then enter the Security's full name.  Tab to the date field to pop up a dialog asking if you want to make a new security.  Agree to that.

Enter security info and set Fraction to 1/1000.  When you pop back to the Add Shares dialog, shares are rounded off to the nearest .01, e.g. 160.447 ->
160.45.

You can go back and edit the added shares to the correct value with the correct precision, so it looks like the rounding is only happening on initial entry.