Bug 485767

Summary: No online updates of prices possible
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.1.3   
Target Milestone: ---   
Platform: Compiled Sources   
OS: All   
Latest Commit: Version Fixed In: 5.2
Sentry Crash Report:
Attachments: test case
Screenshot showing broken online quote update
Screenshot from previous kmymoney major version
Screenshot showing broken online quote update from actual master branch
Screenshot showing broken online quote update from 5.1 branch

Description Ralf Habacker 2024-04-18 23:50:12 UTC
Created attachment 168655 [details]
test case

STEPS TO REPRODUCE
1. download https://cdn.kde.org/ci-builds/office/kmymoney/master/windows/kmymoney-master-3201-windows-cl-msvc2019-x86_64.7z
2. unpack and start bin\kmymoney.exe
3. load appended file
4. select menu entry extra->prices
5. select the present entry and press "online course notes"


OBSERVED RESULT
The price could not be updated from an online quote source 


EXPECTED RESULT
It should be possible to update prices from an online quote source

SOFTWARE/OS VERSIONS
Windows:  10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Comment 1 Ralf Habacker 2024-04-18 23:50:59 UTC
Created attachment 168656 [details]
Screenshot showing broken online quote update
Comment 2 Ralf Habacker 2024-04-18 23:52:12 UTC
Created attachment 168657 [details]
Screenshot from previous kmymoney major version

With the previous major version of kmymoney the online quote update works out of the box.
Comment 3 Ralf Habacker 2024-04-19 06:35:45 UTC
The issue is also present on a Linux build from git master branch.
Comment 4 Ralf Habacker 2024-04-19 08:36:17 UTC
Created attachment 168664 [details]
Screenshot showing broken online quote update from actual master branch
Comment 5 Ralf Habacker 2024-04-19 08:37:39 UTC
Created attachment 168665 [details]
Screenshot showing broken online quote update from 5.1 branch

Made sure, that an entry is selected.
Comment 6 Ralf Habacker 2024-04-19 08:43:32 UTC
(In reply to Ralf Habacker from comment #5)
> Created attachment 168665 [details]
> Screenshot showing broken online quote update from actual master branch
> 
> Made sure, that an entry is selected.

Since Craft uses the stable branch (5.1) by default, this screenshot is from 5.1.
Comment 7 Thomas Baumgart 2024-05-01 08:07:35 UTC
Git commit 745db530843ae773e788afd8a91283cc5293fc12 by Thomas Baumgart.
Committed on 01/05/2024 at 08:07.
Pushed by tbaumgart into branch 'master'.

Show online price entries no matter if used or not

Online price entries for update were only shown if they are actually
used by any of the accounts. That lead to the fact that existing price
entries in the price table were not shown for online update if no
account was using them.

This change forces all price entries to be shown for update.
FIXED-IN: 5.2

M  +1    -1    kmymoney/dialogs/kequitypriceupdatedlg.cpp

https://invent.kde.org/office/kmymoney/-/commit/745db530843ae773e788afd8a91283cc5293fc12