<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>459636</bug_id>
          
          <creation_ts>2022-09-25 09:51:36 +0000</creation_ts>
          <short_desc>Report heading shows two years when report period matches calendar year</short_desc>
          <delta_ts>2024-12-19 09:58:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>reports</component>
          <version>git (master)</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Thomas Baumgart">tbaumgart</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/kmymoney/commit/e156cec1b29b122844e65de8d98b9f6ceedfc9c7</cf_commitlink>
          <cf_versionfixedin>5.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2156206</commentid>
    <comment_count>0</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2022-09-25 09:51:36 +0000</bug_when>
    <thetext>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 &quot;2002&quot; to &quot;2002/03&quot;

EXPECTED RESULT
Heading should remain &quot;2002&quot;

ADDITIONAL INFORMATION
This may also apply to 5.1 versions</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2156207</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Baumgart">thb</who>
    <bug_when>2022-09-25 09:53:49 +0000</bug_when>
    <thetext>Git commit e156cec1b29b122844e65de8d98b9f6ceedfc9c7 by Thomas Baumgart.
Committed on 25/09/2022 at 09:53.
Pushed by tbaumgart into branch &apos;master&apos;.

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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>