[kmymoney] [Bug 397020] Opening dates in "all dates" plot

Thomas Baumgart bugzilla_noreply at kde.org
Sun Aug 5 15:24:02 BST 2018


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

Thomas Baumgart <thb at net-bembel.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/kmy
                   |                            |money/d5210daac1f89d84cbf56
                   |                            |d23860e064ad90cbabf

--- Comment #1 from Thomas Baumgart <thb at net-bembel.de> ---
Git commit d5210daac1f89d84cbf56d23860e064ad90cbabf by Thomas Baumgart.
Committed on 05/08/2018 at 14:24.
Pushed by tbaumgart into branch 'master'.

Fix y-offset of graph for all dates

Summary:
The left most value in a networth graph (called the opening balance) is
calculated based on the closing balance of the date prior to the
selected start date. This is perfectly OK but leads to the logical
consequence that if the user selects "all dates" as the date range this
value will be zero.

Since the opening balance is the first transaction it would make sense
to use the opening balance if the above is the case. This way, the graph
starts out at the level of the sum of included opening balances and not
zero, which avoids an initial edge to be displayed.

This change does exactly that and solves the problem.

Test Plan: Use the same data used to generate  [[
https://bugsfiles.kde.org/attachment.cgi?id=114236 | the graph attached to the
bug ]] and verify that the edge on the left is not painted anymore.

Reviewers: antoine

Reviewed By: antoine

Differential Revision: https://phabricator.kde.org/D14624

M  +13   -0    kmymoney/plugins/views/reports/core/pivottable.cpp

https://commits.kde.org/kmymoney/d5210daac1f89d84cbf56d23860e064ad90cbabf

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list