[Kmymoney-devel] [kmymoney4] [Bug 357784] New: Buying investments not always displaying correct investment sum

T.B. via KDE Bugzilla bugzilla_noreply at kde.org
Sun Jan 10 11:02:07 UTC 2016


https://bugs.kde.org/show_bug.cgi?id=357784

            Bug ID: 357784
           Summary: Buying investments not always displaying correct
                    investment sum
           Product: kmymoney4
           Version: 4.7.1
          Platform: MS Windows
               URL: https://picload.org/image/wrpgill/investmentfractionim
                    pactonpric.png
                OS: MS Windows
            Status: UNCONFIRMED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: kmymoney-devel at kde.org
          Reporter: hummerfisch at yahoo.de

The displayed sum of investments being bought or saled may be subject to a
rounding error depending on the fraction setup of the investment.

The sum of money involved is rounded according to the fraction setting of the
investment, which is wrong. While investments may be subject to fractions, the
price for the investment needs financial rounding according to the currency of
the price, what are usually 2 digits to display Cent values.

Reproducible: Always

Steps to Reproduce:
1. Create or edit any investment. Let it have a fraction value of 1 / 1
2. In your stocks account, buy 11 pieces of that investment having a price of
12,34 € (currency does not matter).
3. review the sum price of the investment

Actual Results:  
The sum is being reported as 136 € without any digits. 

Expected Results:  
The correct sum would be 135,74 €

If the behaviour is as desired, at least the german help information is wrong.
It qotes "Stückelung: Die Genauigkeit, mit der Ihr Aktienbesitz gemessen wird. 
[...]  Aktien werden oft nur in ganzen Einheiten gerechnet. Für eine solche
Aktie muss der Wert „1“ eingegeben werden." 
The suggested fraction for stocks is 1 and there is no mention of an impact of
the displayed investment sum. Once stored, the investment sum is displayed
correctly, it is an annoying effect during entering the transaction.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list