Bug 459636

Summary: Report heading shows two years when report period matches calendar year
Product: [Applications] kmymoney Reporter: Thomas Baumgart <tbaumgart>
Component: reportsAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas Baumgart 2022-09-25 09:51:36 UTC
In some circumstances, year headings are shown in the form yyyy/yy even though the fiscal year is the calendar year and the start date of the report is Jan 1st.

STEPS TO REPRODUCE
1. Switch fiscal year to start on Jan 1st
2. Start report with all dates selected
3. Change start date to Jan 1st of the second year of data

OBSERVED RESULT
Heading switches from "2002" to "2002/03"

EXPECTED RESULT
Heading should remain "2002"

ADDITIONAL INFORMATION
This may also apply to 5.1 versions
Comment 1 Thomas Baumgart 2022-09-25 09:53:49 UTC
Git commit e156cec1b29b122844e65de8d98b9f6ceedfc9c7 by Thomas Baumgart.
Committed on 25/09/2022 at 09:53.
Pushed by tbaumgart into branch 'master'.

Show single year in report heading if fiscal year equals calendar year

M  +7    -2    kmymoney/plugins/views/reports/core/pivottable.cpp
M  +8    -0    kmymoney/plugins/views/reports/core/pivottable.h

https://invent.kde.org/office/kmymoney/commit/e156cec1b29b122844e65de8d98b9f6ceedfc9c7