<?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>475603</bug_id>
          
          <creation_ts>2023-10-14 12:19:12 +0000</creation_ts>
          <short_desc>Net worth reports do not consider investment values if an account (any account) is filtered</short_desc>
          <delta_ts>2024-08-19 10:08:16 +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>5.1.3</version>
          <rep_platform>Ubuntu</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="Jamariano">jamariano</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          
          
          <cf_commitlink></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>2258874</commentid>
    <comment_count>0</comment_count>
    <who name="Jamariano">jamariano</who>
    <bug_when>2023-10-14 12:19:12 +0000</bug_when>
    <thetext>SUMMARY

The net worth report works fine as long as you do not use the filter by account functionality. If you filter by account (that is, selecting one or many accounts to be excluded from the report), then the report will simply forget about the investments, not taking them adding them into the total value. If you go back and select ALL accounts again, the final result is correct once again. This behaviour is not happening in version 5.0.6 for windows

STEPS TO REPRODUCE
1. Reports  --&gt; Net Worth --&gt; Net worth by month
2. Check the result
3. Configure --&gt; Filters --&gt; Account --&gt; Uncheck ANY account
4. Check the result, it will differ from #2 in the value of investments


SOFTWARE/OS VERSIONS

Version: 5.1.3-dfb75418c
Linux: Ubuntu 22.04.3 LTS 22.04 (x86_64)
KDE Frameworks: Versión 5.104.0
Qt Version: Versión 5.15.8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2285354</commentid>
    <comment_count>1</comment_count>
      <attachid>165472</attachid>
    <who name="Jamariano">jamariano</who>
    <bug_when>2024-02-02 11:26:30 +0000</bug_when>
    <thetext>Created attachment 165472
Kmymoney sample file to reproduce bug

The sample file has only a checking account (€4.500) and a structure of investment accounts. There are 2 securities (a mutual fund and a bond). They have a value of €5.500.

If you run the &quot;net worth by year&quot; report, total net worth is €10.000. This is correct.
If you run the &quot;net worth by year-customized&quot; report, total net worth is €10.000. Same info as before, but with full detail. This is correct.

If you now configure the report to exclude the checking account from the report, the net worth is 0, instead of €5.500 as expected. And now in the filter list, none of the securities are shown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2337134</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2024-07-13 14:00:16 +0000</bug_when>
    <thetext>This has been fixed in the meantime in the current development (master) version of the application. When loading the sample file, no account is selected for the customized report and the values show zero. Pressing the All button in the report&apos;s account filter tab solved that issue. Unchecking the Checkings account shows the correct values. So I close this here as fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2346658</commentid>
    <comment_count>3</comment_count>
    <who name="Jamariano">jamariano</who>
    <bug_when>2024-08-19 10:08:16 +0000</bug_when>
    <thetext>(In reply to Thomas Baumgart from comment #2)
&gt; This has been fixed in the meantime in the current development (master)
&gt; version of the application. When loading the sample file, no account is
&gt; selected for the customized report and the values show zero. Pressing the
&gt; All button in the report&apos;s account filter tab solved that issue. Unchecking
&gt; the Checkings account shows the correct values. So I close this here as
&gt; fixed.

I can confirm that it is working in the development version. BIG thank you.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>165472</attachid>
            <date>2024-02-02 11:26:30 +0000</date>
            <delta_ts>2024-02-02 11:26:30 +0000</delta_ts>
            <desc>Kmymoney sample file to reproduce bug</desc>
            <filename>BugTest.kmy</filename>
            <type>application/gzip</type>
            <size>1796</size>
            <attacher name="Jamariano">jamariano</attacher>
            
              <data encoding="base64">H4sICAjPvGUAAwDNWdty4kYQfc9XTFR5SB60gAA7u4WzxUXeKIuBksRmyUO2BmmACbpFM2LNpvKS
78lX5UsyNwlxs7GxXUu5ytJcuk+f7mlNz7Te3oYBWKGU4Di60mqvqhpAkRf7OJpfaRmd6T9qb3/6
pvVtb9h1JyMTvL+Z3AwH5kS/tvom69h5By3+3xpcD9kzaHVts+1aw8GnXts1gQ8putKMqtHQqwb7
0ypiUL/tuJ9uhj3r2jJ7d478YNoOkwawz6CqtmvrY7m5KZpblRKM1tgxbYBCiIMrTQMRDJnsTjbX
KSJUE0LavZ5tOg7w4iyiaz7qC04YC4g/EpoiRPkTRQFKFnEkmj0sRkp1XAV/sAaOa7ljbrOSdqVV
5ZhRe2KaRaMhFYtGkBFGdwipt1iiNZ8gTBlV+a+mgRTNUMq8ItSKYWw4iuA0QIIIsJn6+3faxlI5
dB7FKfIgQWKotH4E1yTAicCwsZ5QQbsGkpjQ061n5gszTjTIeA6D3BRGTOaTG6SeHP7YHTpu1xy4
LNp2XOu23+02tbvd4XjgFs015XDVLvhoO9R/86ZNCKIMzDphOF4zg7JwilIOKYCEhmwpzjCnhXEY
EYppRsVSld2MiDjycCAHJJCxSqGndGrAR8RLcZLPiBMUyZGSNaXay1LuDWa+ObYVhc64k5sgGsot
EryKzspd3XXV3arsyGtV1NsRUvoYTnHAXJITU6u+KDMl/dvsVI4ANm+ZBIIKuPUXhVtoPw2sxTJ8
uMFqvCjWXPkZUdd8bFiZf2blmLp4WScp5ff6KM/7CuVxkKUP5IPhbiWfI8iZ/LperenVIs92F8hb
sm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