Bug 346000 - Buys into brokerage account from investments are not rounded
Summary: Buys into brokerage account from investments are not rounded
Status: RESOLVED DUPLICATE of bug 345655
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Compiled Sources Linux
: NOR major
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-08 21:54 UTC by Ian Neal
Modified: 2015-04-08 22:01 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 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 ***