[kmymoney4] [Bug 365177] New: Changing investment fraction doesn't change rounding behavior

2016-07-06 Thread David Chamberlain via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365177

Bug ID: 365177
   Summary: Changing investment fraction doesn't change rounding
behavior
   Product: kmymoney4
   Version: 4.8.0
  Platform: Archlinux Packages
OS: Linux
Status: UNCONFIRMED
  Severity: minor
  Priority: NOR
 Component: general
  Assignee: kmymoney-de...@kde.org
  Reporter: dc46a...@gmail.com

Changed the "Fraction" field on the investment details dialog from "1000" to
"1" so I could accurately record some dividend reinvestment transactions.
On the ledger, the quantity is now shown with 4 decimal places, but any
quantity I enter is still rounded to 3 decimal places.

A workaround is to change the "Fraction", then exit and restart kmymoney before
updating quantities on the ledger.

Reproducible: Always

Steps to Reproduce:
1.Create an investment, accept default "Fraction" of 100
2.Edit the investment and increase the "Fraction" to 1000
3.Open investment account ledger and create a transaction involving the above
investment. Use a quantity with three numbers after the decimal, such as 1.123.

Actual Results:  
The quantity on the ledger will be 1.120.

Expected Results:  
The quantity on the ledger should be 1.123

It appears that the transaction price is correctly calculated using the
unrounded quantity, causing the transaction data recorded in the ledger to be
inconsistent. I.e. Quantity x Share price != Transaction price

-- 
You are receiving this mail because:
You are watching all bug changes.


[kmymoney4] [Bug 365177] Changing investment fraction doesn't change rounding behavior

2016-07-07 Thread David Chamberlain via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365177

--- Comment #2 from David Chamberlain  ---
No, if you restart after step 3 (above) the incorrectly rounded number is still
on the ledger. However, after the restart you can edit the transaction, reenter
the precise quantity, and then the rounding is correct.

In order to get the correct quantity recorded in the ledger, you must: change
investment "Fraction", restart, then create/edit transaction.

BTW, I've only tried this with Stock type investments. Not sure if it matters.

-- 
You are receiving this mail because:
You are watching all bug changes.