[kmymoney] [Bug 392755] New: kmymoney-4.8.1.1 suggestion: Category for realized profit/loss of an investment

Christian bugzilla_noreply at kde.org
Thu Apr 5 12:17:53 UTC 2018


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

            Bug ID: 392755
           Summary: kmymoney-4.8.1.1 suggestion: Category for realized
                    profit/loss of an investment
           Product: kmymoney
           Version: 4.8.1
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kmymoney-devel at kde.org
          Reporter: gentoo at moin.fi
  Target Milestone: ---

Suggestion: When selling an investment, calculate the realized profit or loss
and assign a category to it.

Motivation: It would be nice to have the investment "returns" in a category, so
that they show up in the Income/Expenses views. Also, for the accounting, where
the balance sheet shows the current state of all assets, and the difference
from one year to the next is captured in the categories (Income, Expenses),
there has to be a category where this realized profit/loss is captured,
otherwise the differences in the balance sheet and in the "bottom-line" of the
income-expenses do not match.

Implementation: I think that this realized profit/loss is usually calculated by
tracking the purchasing price of the oldest asset still held.

Example 1:
1.1.2016 Buy 10 shares of XYZ at 5 per share (transaction value 50)
1.1.2017 Buy 5 shares of XYZ at 7 per share (transaction value 35)
1.1.2018 Sell 15 shares of XYZ at 9 per share (transaction value 135)
--> Here, the purchase value was 85, the sales value 135, i.e. a profit of 50.
There should be a category where this is shown as 50.

Example 2:
1.1.2016 Buy 10 shares of XYZ at 5 per share (transaction value 50)
1.1.2017 Buy 5 shares of XYZ at 7 per share (transaction value 35)
1.1.2018 Sell 5 shares of XYZ at 9 per share (transaction value 45)
--> This would be a profit of 20 because those 5 shares were bought 1.1.2016 at
price 5. There should be a category where this is assigned to.
1.3.2018 Sell 10 shares of XYZ at 10 per share (transaction value 100)
--> This would be a profit of 40 because 5 shares were bought 1.1.2016 and 5 on
1.1.2017.

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


More information about the KMyMoney-devel mailing list