Bug 250471

Summary: Capital gain/loss report using FIFO
Product: [Applications] kmymoney Reporter: Toan <nguyenthetoan>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: wishlist CC: lukasz.wojnilowicz
Priority: NOR    
Version: SVN   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 5.0

Description Toan 2010-09-07 18:29:18 UTC
Version:           SVN trunk (using KDE 4.5.0) 
OS:                Linux

I know KMM doesn't do capital gain/loss calculation due to the complexity of specifying the proper lots. However, if we use first-in fist-out basis, the calculation of capital gain/loss is no longer unambiguous. (I had experiences with two online brokerages. Both use FIFO basis in their capital gain/loss report. And I'm satisied with it).

So this is a feature request for a FIFO capital gain/loss report. :)

Reproducible: Always
Comment 1 NSLW 2017-01-08 19:34:02 UTC
Git commit d56fe898abc488a485b343b68a05a37103998ff5 by Łukasz Wojniłowicz.
Committed on 08/01/2017 at 19:33.
Pushed by wojnilowicz into branch 'master'.

Add Capital Gains report

REVIEW: 129790
Signed-off-by: Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>

M  +1    -1    kmymoney/mymoney/mymoneyreport.cpp
M  +1    -1    kmymoney/mymoney/mymoneyreport.h
M  +2    -1    kmymoney/reports/listtable.cpp
M  +112  -0    kmymoney/reports/querytable.cpp
M  +1    -0    kmymoney/reports/querytable.h
M  +21   -0    kmymoney/views/kreportsview.cpp

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