<div dir="ltr"><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">While entering a number of investment transactions recently I realized that KMM doesn't actually have a way to record the gain/loss on the sale of an investment.  </font><span style="font-family:monospace,monospace">I was thinking about implementing something to solve this but wanted to pass the idea past the list first.</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">As a first step at a solution, I was going to add a couple more rows to the transaction detail in the investment register:</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">  - A cost basis field.  This would be an amount field that is</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">    used to determine how much the cost of the investment is</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">    reduced by the sale.  </span><span style="font-family:monospace,monospace">Initially this field could be pre-filled</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">    by the average cost (based on the number of shares being sold).</span></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><span style="font-family:monospace,monospace">    If the entire investment is sold, t</span><span style="font-family:monospace,monospace">his field would be fixed</span></div><div class="gmail_default"><span style="font-family:monospace,monospace">    and not editable.</span></div><div class="gmail_default"><span style="font-family:monospace,monospace"> </span></div></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">  - A gain/loss field.  This would be an splitable account field</span><br></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">    for entering the category or categories for the gain/loss.</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">    Splits are useful for allowing both short-term and long-term</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">    gain/loss specifications on a transaction.</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">The current implementation "hides" the gain/loss because the balance of an investment shows as zero when the share value is zero, regardless of the amount the investment is sold for.  Whereas, since the gain/loss is not recorded anywhere, the balance ought to be negative if the investment was sold for a gain and positive if sold for a loss.</span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-family:monospace,monospace">Mitch</span></div><div class="gmail_default" style="font-size:small"><br></div></div>