Bug 499642

Summary: Investment not reported correctly when adding an not buying in
Product: [Applications] kmymoney Reporter: fkupke
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ralf.habacker
Priority: NOR    
Version First Reported In: 5.1.3   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.1.92
Sentry Crash Report:

Description fkupke 2025-02-07 14:17:46 UTC
There may be an error in the function “Add investment:share”.
The number of shares that are entered are regarded as “value” during processing.
Example: I add 1000 shares of a stock whose value is $2.726. This is transferred correctly to the account book (securities account). The value is created with $2726.00.
If you now pull a report of the investment postings, the posting is displayed with the value “$1000.00”. The number of shares remains at “zero”.
There is probably an error in the evaluation for the report.



STEPS TO REPRODUCE
1. Add shares  (not buy) in an investion account
2. Make a Report of Investion
3. 

OBSERVED RESULT
The number of shares will be reported as value of  shares

EXPECTED RESULT
Reported should be the numer of shares with the correct value.


SOFTWARE/OS VERSIONS
Windows: 
ADDITIONAL INFORMATION
Comment 1 Ralf Habacker 2025-02-07 16:18:21 UTC

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