Bug 346000

Summary: Buys into brokerage account from investments are not rounded
Product: [Applications] kmymoney Reporter: Ian Neal <iann_bugzilla>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Ian Neal 2015-04-08 21:54:46 UTC
When buys are made for an investment account the cash value does not seem to get rounded to the nearest penny which causes cash value in brokerage account to be misreported.
For example:
£0.00 is shown in red that indicates it is less than 0
A dividend of £63 is paid, shows correctly but then a buy is made of 1.6333 shares at 2.0633 totalling £3.3699 (as shown in the investment account) which should round up to £3.37 in the brokerage account but is shown as £3.36
The total after that buy in the brokerage account shows as £59.62 (should be £59.63)

Reproducible: Always

Steps to Reproduce:
1. Create Investment account and brokerage account
2. Create some investments which are to 4 decimal places and price precision of 6 
3. Buy some investments that do not total to 2 decimal places (e.g. 3.3699 rather than exactly 3.37)

Actual Results:  
Brokerage account display incorrect totals and values

Expected Results:  
Brokerage account displays correct totals and values

I am sure this is a recent regression as this first time I have noticed it in the last year or so.
Comment 1 Ian Neal 2015-04-08 22:01:57 UTC

*** This bug has been marked as a duplicate of bug 345655 ***