Bug 486466 - Price update of a share is not saved
Summary: Price update of a share is not saved
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-02 17:27 UTC by Ralf Habacker
Modified: 2024-05-04 11:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.2
Sentry Crash Report:


Attachments
test case (1.45 KB, application/x-kmymoney)
2024-05-02 17:27 UTC, Ralf Habacker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2024-05-02 17:27:34 UTC
Created attachment 169110 [details]
test case

STEPS TO REPRODUCE
1. build kmymoney from git master branch or download a kmymoney snapshot from git master branch
2. start kmymoney 
3. open appended test case
4. open settings and select "online quotes"
5. install "Yahoo.com [Equities]"
6. duplicate the installed source and rename the copy to "Yahoo Finance"
7. save and close settings
8. select menu entry "Extra"->"Update stock and currencies"
9. press "Update all"
10. Inspect the price column - it shows "43,38 BHP.AX"
11. close and reopen the same dialog from 8. 
12. Inspect the price column - it shows a different value -"0,02 $"

OBSERVED RESULT
the value shown in the price column at 10. and 12. are incorrect

EXPECTED RESULT
In the price column shown at 10. it should be "43,38 AUD"

SOFTWARE/OS VERSIONS
Linux: openSUSE Leap 15.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Comment 1 Thomas Baumgart 2024-05-04 11:59:13 UTC
Git commit 84cbad070abf76a45808c90ce480378ef96aa679 by Thomas Baumgart.
Committed on 04/05/2024 at 11:58.
Pushed by tbaumgart into branch 'master'.

Correct extraction of price information for investments

The extraction for price information of securities was interpreted in
the wrong way. From and To values were exchanged. Also, the price
precision was not determined correctly.
FIXED-IN: 5.2

M  +11   -7    kmymoney/dialogs/kequitypriceupdatedlg.cpp

https://invent.kde.org/office/kmymoney/-/commit/84cbad070abf76a45808c90ce480378ef96aa679