https://bugs.kde.org/show_bug.cgi?id=421260

Thomas Baumgart <t...@net-bembel.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |RESOLVED
   Version Fixed In|                            |5.0.9
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/kmy
                   |                            |money/650d68b395dcd87dfa412
                   |                            |94565d86d0fdbfcbab4

--- Comment #1 from Thomas Baumgart <t...@net-bembel.de> ---
Git commit 650d68b395dcd87dfa41294565d86d0fdbfcbab4 by Thomas Baumgart.
Committed on 10/05/2020 at 05:57.
Pushed by tbaumgart into branch '5.0'.

Use the correct institution in reports

When an account has no institution assigned the one of the top-level
account was used in some reports. This leads to wrong results in case of
investments which don't have an institution assigned but should use the
one of the parent investment account.

This worked as long as the investment account itself was the top-level
account. In case the investment account itself was a sub-account to a
top-level account or even further down in the account hierarchy, the
institution was always taken from the top-level account.

This change fixes the problem by walking up the hierarchy and using the
first institution found.
FIXED-IN: 5.0.9

M  +1    -6    kmymoney/plugins/views/reports/core/querytable.cpp
M  +17   -0    kmymoney/plugins/views/reports/core/reportaccount.cpp
M  +7    -0    kmymoney/plugins/views/reports/core/reportaccount.h

https://commits.kde.org/kmymoney/650d68b395dcd87dfa41294565d86d0fdbfcbab4

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to