Bug 173907

Summary: Fraction on new securities is not always honored
Product: [Applications] kmymoney2 Reporter: Bob Igo <bob>
Component: generalAssignee: KMyMoney Development Team <kmymoney2-developer>
Status: RESOLVED FIXED    
Severity: normal CC: bob
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

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.