Bug 466270 - "Yield" activity swaps to "Dividend" activity
Summary: "Yield" activity swaps to "Dividend" activity
Status: RESOLVED FIXED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.3
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-22 21:41 UTC by Thomas Niklaus
Modified: 2023-03-18 06:34 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Niklaus 2023-02-22 21:41:08 UTC
SUMMARY
***
When I add a new stock transaction to an investment account and classify it as "Yield" transaction, it will be stored as "Dividend" Transaction as soon I store the transaction. Why does it flip from "Yield" to "Dividend" ?
Comment 1 Jack 2023-02-22 22:51:14 UTC
That's actually a good question.  In the handbook, yield and dividend are considered two different names for the same thing.  However, in the internal listing of activity types, they are different.  I take them both to be the payment of cash based on your holdings.  This link (https://www.investopedia.com/ask/answers/011315/what-difference-between-yield-and-dividend.asp) defines yield as essentially the same as dividend, but expressed as a percentage, but it talks about both as annual figures.  I can imagine KMM specifying the yield of a stock based on current price and a year's worth of actual dividend income, but that would be in a report, not a transaction.
How would you distinguish the two in terms of a single transaction?
Comment 2 Thomas Niklaus 2023-02-23 11:36:57 UTC
Hi Jack
Thanks for your comment. Well yield should be kept separate from dividend. Often yield is treated different from dividend by investors and tax authorities. Yield is more a gain of value and therefore often tax free income. Therefore, ist should be kept separate. Anyhow, as the App support two classification, it should be able to handle it.

Regards, Thomas
 



> Am 22.02.2023 um 23:51 schrieb Jack <bugzilla_noreply@kde.org>:
> 
> https://bugs.kde.org/show_bug.cgi?id=466270
> 
> Jack <ostroffjh@users.sourceforge.net> changed:
> 
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>         Resolution|---                         |WAITINGFORINFO
>             Status|REPORTED                    |NEEDSINFO
> 
> --- Comment #1 from Jack <ostroffjh@users.sourceforge.net> ---
> That's actually a good question.  In the handbook, yield and dividend are
> considered two different names for the same thing.  However, in the internal
> listing of activity types, they are different.  I take them both to be the
> payment of cash based on your holdings.  This link
> (https://www.investopedia.com/ask/answers/011315/what-difference-between-yield-and-dividend.asp)
> defines yield as essentially the same as dividend, but expressed as a
> percentage, but it talks about both as annual figures.  I can imagine KMM
> specifying the yield of a stock based on current price and a year's worth of
> actual dividend income, but that would be in a report, not a transaction.
> How would you distinguish the two in terms of a single transaction?
> 
> -- 
> You are receiving this mail because:
> You reported the bug.
Comment 3 Bug Janitor Service 2023-03-10 03:45:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Thomas Baumgart 2023-03-10 09:34:15 UTC
@Thomas: please don't include the original post when answering via e-mail to avoid a mess on the web frontend. Thanks.

Changing state back to reported so that it is not closed automatically.
Comment 5 Jack 2023-03-10 23:33:30 UTC
I do not object to leaving them as separate activities, but I'd love to know how to describe the difference in the handbook.  My current thought is to say that most people consider them equivalent and there is a web site (even put the link?) which suggests dividend is specified as an amount and yield is specified as a percentage, so KMM considers them distinct activity types for the convenience of the user, to help with reporting for tax purposes.
Comment 6 Thomas Niklaus 2023-03-17 11:05:45 UTC
Apart from interest and dividend, yield is the only option to reflect income for a stock account. As I would like to separate taxable income from none taxable income I try to leverage yield. 
But regardless of the use, if you can select yield and dividend booking activity in kmm it should keep the value you have selected and not alter it automatically.
Comment 7 Jack 2023-03-17 14:59:39 UTC
Note that there are two possible code changes: one would be to merge the two into a single transaction type, the other would be not alter one to be the other.  The latter is indeed what will eventually happen - it is just not likely to be a very high priority.  (Patches always welcome, as we say.)
However, until it is fixed, you can also easily distinguish taxable from non-taxable income by having different categories - that's how I do it.
Comment 8 Thomas Niklaus 2023-03-17 15:20:40 UTC
Thanks Jack. I use different categories for the booking already, but it would be great if the lead information "transaction type" would also segregated.
Comment 9 Thomas Baumgart 2023-03-18 06:34:32 UTC
Git commit 3c98fea2006b6ca2795e83545336c047736336f1 by Thomas Baumgart.
Committed on 18/03/2023 at 06:34.
Pushed by tbaumgart into branch 'master'.

Differentiate between yield and dividend
FIXED-IN: 5.2

M  +28   -0    kmymoney/views/investactivities.cpp
M  +33   -4    kmymoney/views/investactivities.h
M  +13   -5    kmymoney/views/investtransactioneditor.cpp

https://invent.kde.org/office/kmymoney/commit/3c98fea2006b6ca2795e83545336c047736336f1