Bug 498054

Summary: Better position of "Last Price" column in "Investment Capital Gains by Account" possible
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: reportsAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 5.1.90   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 5.2
Sentry Crash Report:
Attachments: test file

Description Ralf Habacker 2024-12-30 10:52:00 UTC
Created attachment 176974 [details]
test file

STEPS TO REPRODUCE
1. download kmymoney snapshot from https://cdn.kde.org/ci-builds/office/kmymoney/master/
2. start kmymoney
3. open appended test file
4. Show report "Investment Capital Gains by Account (Customized)"

OBSERVED RESULT
The tiles of the report are shown as: 

Account Shares  "Buy Price" "Last Price" "Buy Value" "Ending Market Value" "Percentage Gain" "Capital Gain"

EXPECTED RESULT
The column for the "Buy Value" depends on the "Buy Price" column and the column for the "Ending market value" depends on the "Last Price" column and they should be displayed before the ... Value column as 

Account Shares  "Buy Price" "Buy Value" "Last Price" "Ending Market Value" "Percentage Gain" "Capital Gain"
Comment 1 Bug Janitor Service 2024-12-30 10:55:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/office/kmymoney/-/merge_requests/250
Comment 2 Ralf Habacker 2024-12-30 12:31:45 UTC
Git commit b1ddcd966a4c9b72cbeee99702ee34ebe84d573c by Ralf Habacker.
Committed on 30/12/2024 at 11:02.
Pushed by habacker into branch 'master'.

Use better position of "Last Price" column in "Investment Capital Gains" reports
FIXED-IN:5.2

M  +2    -2    kmymoney/plugins/views/reports/core/querytable.cpp
M  +4    -4    kmymoney/plugins/views/reports/core/tests/data/test-investment-report-querytable-Investment-Capital-Gains-by-Account-_Customized_.csv

https://invent.kde.org/office/kmymoney/-/commit/b1ddcd966a4c9b72cbeee99702ee34ebe84d573c