Bug 484680 - Investment quantity does not support decimal numbers
Summary: Investment quantity does not support decimal numbers
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-28 18:49 UTC by Matthew Schultz
Modified: 2024-03-28 21:10 UTC (History)
1 user (show)

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 Matthew Schultz 2024-03-28 18:49:57 UTC
SUMMARY

When I try to enter an investment ledger line with a fractional share quantity, it rounds to the nearest integer which is incorrect.  The transactional was a purchase of a fractional share (in this case the quantity was 0.738).  Please modify the quantity field for investments to support decimal numbers and allow entering fractional share transactions.


STEPS TO REPRODUCE
1.  Enter a quantity in an investment account as a decimal number.
2.  Notice the quantity gets rounded to the nearest integer.

OBSERVED RESULT
A decimal number in the investment quantity transaction gets rounded to the nearest integer in the quantity field.

EXPECTED RESULT
A decimal number should not be modified at all when entered in the quantity field of an investment account.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Gentoo
(available in About System)
KDE Plasma Version:  5.27.11
KDE Frameworks Version: 
Qt Version: 5.15.12

ADDITIONAL INFORMATION
Comment 1 Ingo Klöcker 2024-03-28 19:24:32 UTC
I'm entering fractional share quantities all of the time. Check the Fraction configured for the investment. Maybe it's set to 1/1. I think it defaults to 1/100 and I change it to 1/1000 for every new investment I add (because there doesn't seem to be a way to change the default).
Comment 2 Matthew Schultz 2024-03-28 19:33:53 UTC
(In reply to Ingo Klöcker from comment #1)
> I'm entering fractional share quantities all of the time. Check the Fraction
> configured for the investment. Maybe it's set to 1/1. I think it defaults to
> 1/100 and I change it to 1/1000 for every new investment I add (because
> there doesn't seem to be a way to change the default).

How do I do that?  I can't set a fraction in the quantity field or a decimal number for the investment transaction.  It only allows whole numbers.
Comment 3 Ingo Klöcker 2024-03-28 20:38:19 UTC
You have to edit the investment in the Investment view. Check the manual if you don't find it.
Comment 4 Matthew Schultz 2024-03-28 21:10:12 UTC
Ok I figured it out.  I had to change each specific investment in the investment detail wizard under the "fraction" field from 1 / 1 to 1 / 1000 and then it finally allowed me to enter a decimal quantity.  It's not very intuitive as to what the fraction field does but at least I got it to work. Thanks!