<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>276322</bug_id>
          
          <creation_ts>2011-06-23 12:46:22 +0000</creation_ts>
          <short_desc>Unwanted fields show in ledger for investment.</short_desc>
          <delta_ts>2014-11-09 10:48:53 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>SVN</version>
          <rep_platform>openSUSE</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="allan">agander93</reporter>
          <assigned_to name="allan">agander93</assigned_to>
          <cc>mtibouchi+kdebugtrack</cc>
    
    <cc>onet.cristian</cc>
          
          <cf_commitlink>http://commits.kde.org/kmymoney/cd6b3c9a653096188097fba254360edda395a14f</cf_commitlink>
          <cf_versionfixedin>4.7.2</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1134218</commentid>
    <comment_count>0</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-23 12:46:22 +0000</bug_when>
    <thetext>Version:           SVN trunk (using KDE 4.6.0) 
OS:                Linux

The problem shows best if the transaction form is enabled, but also is evident without the form.
If an existing cash dividend transaction is selected, the form shows widgets for Date, Amount, Total and Status, which is what is expected.
If that transaction is then opened for editing, additional widgets show for Security, Quantity and Price, which aren&apos;t expected for a cash dividend.
If, while the transaction is open for editing, &apos;Dividend&apos; is reselected, the additional fields disappear.  Similar behaviour occurs for Buy transactions.


Reproducible: Always

Steps to Reproduce:
1) Enable the Ledger form.
2) Open a file containing Dividend transaction.
3) Select a Dividend transaction.
4) Only widgets for Date, Amount, Total and Status appear.
5) Open that transaction for editing.
6) Additional widgets show for Security, Quantity and Price, which aren&apos;t expected.
7) Reselect Dividend from the combo.
8) The additional fields disappear.


Actual Results:  
As above.

Expected Results:  
The additional widgets for Security, Quantity and Price should not appear.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135382</commentid>
    <comment_count>1</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-26 10:34:52 +0000</bug_when>
    <thetext>I&apos;ve been looking at this, but am stuck:-(

I traced where it is going wrong, but, to me, the code looks OK.  In investtransactioneditor.cpp,  InvestTransactionEditor::slotUpdateActivity(), circa line 835, the following code appears -

  dynwidgets &lt;&lt; &quot;asset-account&quot; &lt;&lt; &quot;interest-amount&quot; &lt;&lt; &quot;fee-amount&quot; &lt;&lt;    &quot;shares&quot; &lt;&lt; &quot;price&quot; &lt;&lt; &quot;total&quot;;

  for (it_s = dynwidgets.constBegin(); it_s != dynwidgets.constEnd(); ++it_s) {
    QWidget* w = haveWidget(*it_s);
    if (w) 
      w-&gt;hide();
  }
I can change the &apos;w-&gt;hide()&apos; to w-&gt;setDisabled(true) and that seems to work, or I can insert a messagebox() before the &apos;for&apos; statement, and then the edit boxes do get hidden as expected, but I haven&apos;t yet found a proper fix.

I don&apos;t know if this is a timing issue, but, whether or not, what needs to be done?  I&apos;m clutching at straws here!  Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135627</commentid>
    <comment_count>2</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2011-06-26 16:27:38 +0000</bug_when>
    <thetext>One thing you could try is to replace

  w-&gt;hide();

with

  QTimer::singleShot(0, w, SLOT(hide()));

If that does not work, try if replacing 0 with a value of 1000 makes a difference.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135664</commentid>
    <comment_count>3</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-26 17:22:51 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; One thing you could try is to replace
&gt; 
&gt;   w-&gt;hide();
&gt; 
&gt; with
&gt; 
&gt;   QTimer::singleShot(0, w, SLOT(hide()));
&gt; 
&gt; If that does not work, try if replacing 0 with a value of 1000 makes a
&gt; difference.

Sanity returns!  Thanks for that.  I had remembered seeing this in the import area, looked at it and didn&apos;t pursue it.  Instead I tried a huge for loop and that made no difference.

The value &apos;0&apos; didn&apos;t help, so I tried 1000.  The problem was still there and I cancelled the edit, and just as it closed I saw the fields disappear!  So, I now have worked it down to 10.  Problem now is that all those widgets are closing, but I need to clean up my code before I go any further.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135957</commentid>
    <comment_count>4</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-27 10:33:28 +0000</bug_when>
    <thetext>Making progress, but I&apos;ve noticed something else.

When a Dividend transaction is opened for editing, the fee category field is active, but there is no label.  If a fee category is entered, the fee amount field becomes active - again no label, and if an amount is entered, the total reflects this change.  However, when the transaction edit is accepted, the fee amount has been lost.

I&apos;m not clear on whether it is expected that a Dividend payment could have a fee, which sounds a bit unlikely, so I suspect that the fee account should not be active.  If I hide it, though, the split widget shifts to the left.

Before going any further, I think I need a second opinion, please, on what is right and what is wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135962</commentid>
    <comment_count>5</comment_count>
    <who name="David Houlden">djhoulden</who>
    <bug_when>2011-06-27 11:02:15 +0000</bug_when>
    <thetext>I don&apos;t think a fee is applicable to a dividend payment and when entering a new dividend the gui doesn&apos;t show the fee field. A fee can however be applicable to a reinvest dividend transaction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136016</commentid>
    <comment_count>6</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-27 12:42:44 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I don&apos;t think a fee is applicable to a dividend payment and when entering a new
&gt; dividend the gui doesn&apos;t show the fee field. A fee can however be applicable to
&gt; a reinvest dividend transaction.

That&apos;s two for &apos;no fee&apos;.  Good.  The GUI is what I&apos;m working on at the moment, and there are anomalies.  The fee amount is not shown, but the fee category selector is shown, and if an entry is made, the fee amount becomes active, but any value entered is not retained.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136305</commentid>
    <comment_count>7</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-28 10:02:39 +0000</bug_when>
    <thetext>I&apos;ve noticed various other anomalies in the various investment types, to do with unnecessary fields, missing labels and one where it&apos;s possible to enter a value for a fee without a category, and which doesn&apos;t get retained.

Also Bug 276315 may need to be revisited. The fix worked for Dividends, where no price is involved, but I think the odd currency/price wizard still shows for ReinvDiv/Buy transactions, where there is a price.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136343</commentid>
    <comment_count>8</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-28 11:35:47 +0000</bug_when>
    <thetext>A query about investment interest splits.

A Buy transaction being edited shows the Interest split button, but ReInvDiv does not.  The Buy split seems to work as I expect, at least in limited testing.

In the code, the ReInvDiv split button gets hidden, which figures, but for others the following appears -

// FIXME once we can handle split interest, we need to uncomment the next line
// interest-&gt;splitButton()-&gt;show();


As the splits do seem to work, should that comment be removed, particularly as the button does in fact show.  Also, and perhaps a bit more importantly, why no ReInvDiv splits?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1136562</commentid>
    <comment_count>9</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-06-28 22:49:40 +0000</bug_when>
    <thetext>Sorry, but another query.  I can&apos;t think of any reason for a Buy transaction to have an interest amount field, especially bearing in mind that ReInvDiv doesn&apos;t have one.  I can understand them having an interest account field for a category.

Unless I hear to the contrary, I&apos;m inclined to remove it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1139957</commentid>
    <comment_count>10</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-07-09 17:53:32 +0000</bug_when>
    <thetext>I&apos;m still finding the odd wrinkle :( The latest is strange and I haven&apos;t found a way to fix it.

If I create a valid Dividend transaction and save it, then decide to edit it and make it an Add shares instead, when that is saved, the transaction is flagged as having a missing assignment, of the dividend amount.  I haven&apos;t found a way to correct this, other than deleting the transaction and starting again.

The reason I was changing a Dividend to an Add was that I have been finding widget problems when editing an existing transaction.

Bearing in mind that the circumstances are somewhat artificial, is it acceptable to resort to deleting the transaction, or is there a better way?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1152030</commentid>
    <comment_count>11</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-08-09 20:01:16 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; I&apos;m still finding the odd wrinkle :( The latest is strange and I haven&apos;t found
&gt; a way to fix it.
&gt; 
&gt; If I create a valid Dividend transaction and save it, then decide to edit it
&gt; and make it an Add shares instead, when that is saved, the transaction is
&gt; flagged as having a missing assignment, of the dividend amount.  I haven&apos;t
&gt; found a way to correct this, other than deleting the transaction and starting
&gt; again.
&gt; 
&gt; The reason I was changing a Dividend to an Add was that I have been finding
&gt; widget problems when editing an existing transaction.
&gt; 
&gt; Bearing in mind that the circumstances are somewhat artificial, is it
&gt; acceptable to resort to deleting the transaction, or is there a better way?

Hoping that someone is interested, I&apos;m coming back to this issue.

Whilst my example is not very likely, it is not totally unrealistic.  It also can affect other types than the &apos;add shares&apos; I first noticed.

When I&apos;ve been trying to tie up loose ends in the UI, I&apos;ve tried to show only the necessary widgets.  In this case, however, when attempting to change to an &apos;add shares&apos;, or to &apos;reinvest&apos;, not all widgets are shown, so a clean edit is not possible, without a lot of jiggery-pokery.

Should the app be able to cope with such an issue, or is zapping the transaction an acceptable solution?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1157604</commentid>
    <comment_count>12</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-08-27 19:32:31 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; One thing you could try is to replace
&gt; &gt; 
&gt; &gt;   w-&gt;hide();
&gt; &gt; 
&gt; &gt; with
&gt; &gt; 
&gt; &gt;   QTimer::singleShot(0, w, SLOT(hide()));
&gt; &gt; 
&gt; &gt; If that does not work, try if replacing 0 with a value of 1000 makes a
&gt; &gt; difference.
&gt; 
Eventually, I settled on a value of &apos;1&apos;, which has worked nicely, and I had to use it quite a lot.

However, and unexpectedly, I think I found why it appeared necessary, when I had accepted it and wasn&apos;t looking any deeper.

After a break, when I was doing a tidy up, one of the widgets which I had got to work correctly, appeared again when it should have been hidden.  Immediately on opening a new investment transaction, when &apos;Buy shares&apos; was displayed, but hadn&apos;t been selected, the &apos;Interest&apos; widget was visible, when it shouldn&apos;t have been.  When &apos;Buy shares&apos; was selected, the widget correctly was hidden.

I found that in InvestTransactionEditor::slotUpdateActivity(), &apos;haveWidget(&quot;interest-account&quot;)-&gt;parentWidget()-&gt;hide()&apos; didn&apos;t hide the combobox.  When I removed the &apos;parentWidget()&apos; element, I was able to revert the majority of the cases where I&apos;d needed to use the QTimer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1157605</commentid>
    <comment_count>13</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-08-27 19:34:08 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; One thing you could try is to replace
&gt; &gt; 
&gt; &gt;   w-&gt;hide();
&gt; &gt; 
&gt; &gt; with
&gt; &gt; 
&gt; &gt;   QTimer::singleShot(0, w, SLOT(hide()));
&gt; &gt; 
&gt; &gt; If that does not work, try if replacing 0 with a value of 1000 makes a
&gt; &gt; difference.
&gt; 
Eventually, I settled on a value of &apos;1&apos;, which has worked nicely, and I had to use it quite a lot.

However, and unexpectedly, I think I found why it appeared necessary, when I had accepted it and wasn&apos;t looking any deeper.

After a break, when I was doing a tidy up, one of the widgets which I had got to work correctly, appeared again when it should have been hidden.  Immediately on opening a new investment transaction, when &apos;Buy shares&apos; was displayed, but hadn&apos;t been selected, the &apos;Interest&apos; widget was visible, when it shouldn&apos;t have been.  When &apos;Buy shares&apos; was selected, the widget correctly was hidden.

I found that in InvestTransactionEditor::slotUpdateActivity(), &apos;haveWidget(&quot;interest-account&quot;)-&gt;parentWidget()-&gt;hide()&apos; didn&apos;t hide the combobox.  When I removed the &apos;parentWidget()&apos; element, I was able to revert the majority of the cases where I&apos;d needed to use the QTimer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1157610</commentid>
    <comment_count>14</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-08-27 19:37:33 +0000</bug_when>
    <thetext>Please ignore the duplication, which resulted from a mid-air collision with myself.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1163581</commentid>
    <comment_count>15</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2011-09-17 09:52:44 +0000</bug_when>
    <thetext>SVN commit 1254077 by allananderson:

BUG:276322
REVIEW:6791

If an existing cash dividend transaction is selected, the form shows widgets
for Date, Amount, Total and Status, which is what is expected.
If that transaction is then opened for editing, additional widgets show for
Security, Quantity and Price, which aren&apos;t expected for a cash dividend.
If, while the transaction is open for editing, &apos;Dividend&apos; is reselected, the
additional fields disappear.  Similar behaviour occurs for Buy transactions.

Also, in numerous places, the likes of - 
QWidget* w = haveWidget(*it_s);
    if (w) 
      w-&gt;hide();
were found to produce unreliable results.

Also, When a Dividend transaction is opened for editing, the fee category field is
active, but there is no label.  If a fee category is entered, the fee amount
field becomes active - again no label, and if an amount is entered, the total
reflects this change.  However, when the transaction edit is accepted, the fee
amount has been lost.

Also, fees have been removed from Dividends, and interest income has been removed from 
Buy and Sell, as these seem most unlikely combinations.

I&apos;ve noticed various other anomalies in the various investment types, to do
with unnecessary fields, missing labels and one where it&apos;s possible to enter a
value for a fee without a category, and which doesn&apos;t get retained.

 M  +116 -54   dialogs/investactivities.cpp  
 M  +47 -26    dialogs/investtransactioneditor.cpp  
 M  +2 -2      widgets/transaction.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1254077</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1401324</commentid>
    <comment_count>16</comment_count>
    <who name="Cristian Oneț">onet.cristian</who>
    <bug_when>2013-10-03 18:05:25 +0000</bug_when>
    <thetext>Git commit a82ddef366860e8cd63ca903f7d8e1192c38d65d by Cristian Oneț, on behalf of Allan Anderson.
Committed on 17/09/2011 at 09:52.
Pushed by conet into branch &apos;4.6&apos;.
REVIEW:6791

If an existing cash dividend transaction is selected, the form shows widgets
for Date, Amount, Total and Status, which is what is expected.
If that transaction is then opened for editing, additional widgets show for
Security, Quantity and Price, which aren&apos;t expected for a cash dividend.
If, while the transaction is open for editing, &apos;Dividend&apos; is reselected, the
additional fields disappear.  Similar behaviour occurs for Buy transactions.

Also, in numerous places, the likes of -
QWidget* w = haveWidget(*it_s);
    if (w)
      w-&gt;hide();
were found to produce unreliable results.

Also, When a Dividend transaction is opened for editing, the fee category field is
active, but there is no label.  If a fee category is entered, the fee amount
field becomes active - again no label, and if an amount is entered, the total
reflects this change.  However, when the transaction edit is accepted, the fee
amount has been lost.

Also, fees have been removed from Dividends, and interest income has been removed from
Buy and Sell, as these seem most unlikely combinations.

I&apos;ve noticed various other anomalies in the various investment types, to do
with unnecessary fields, missing labels and one where it&apos;s possible to enter a
value for a fee without a category, and which doesn&apos;t get retained.

svn path=/trunk/extragear/office/kmymoney/; revision=1254077
(cherry picked from commit 101225c4ec65fc7eb4c94d92ee38a32666013908)

M  +116  -54   kmymoney/dialogs/investactivities.cpp
M  +48   -27   kmymoney/dialogs/investtransactioneditor.cpp
M  +2    -2    kmymoney/widgets/transaction.cpp

http://commits.kde.org/kmymoney/a82ddef366860e8cd63ca903f7d8e1192c38d65d</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1414789</commentid>
    <comment_count>17</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2013-11-27 22:46:53 +0000</bug_when>
    <thetext>[From the list -On 24/11/13 23:28, William H. Haller wrote:}
&gt; Allan,
&gt;
&gt; I noticed in your comments on this commit that Interest income was
&gt; removed from Buys and Sells. Buys I can see, but I have been using the
&gt; field in Sells to have a place to record long and short term capital
&gt; gains. Thought I&apos;d pass this along as a reasonable use case - it is
&gt; useful for tax purposes to be able to record your income on sales
&gt; somewhere. I&apos;ve been patching this back into the total for a sell price.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1415839</commentid>
    <comment_count>18</comment_count>
      <attachid>83878</attachid>
    <who name="allan">agander93</who>
    <bug_when>2013-12-02 14:13:39 +0000</bug_when>
    <thetext>Created attachment 83878
Patch to reinstate interest field in Sell activities.

Will commit patch shortly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1416465</commentid>
    <comment_count>19</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2013-12-04 18:03:36 +0000</bug_when>
    <thetext>Git commit 3edd6f3b1eb10aa075dc2ebc4c37be74f258722c by Allan Anderson.
Committed on 27/11/2013 at 22:41.
Pushed by allananderson into branch &apos;master&apos;.

M  +12   -5    kmymoney/dialogs/investactivities.cpp
M  +4    -3    kmymoney/dialogs/investtransactioneditor.cpp

http://commits.kde.org/kmymoney/3edd6f3b1eb10aa075dc2ebc4c37be74f258722c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424395</commentid>
    <comment_count>20</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2014-01-12 21:10:45 +0000</bug_when>
    <thetext>From the Users list -
&quot;I was updating my investment 401K accounts for year end to file taxes and noticed that for BUY Shares, only the Fee category line appears now appears in the transaction entry area.  Previously, and I am not sure in what version, the Interest Category line was present in the input area as well.

This is important because I work for a company that allows me to buy stock each quarter at a discount / subsidy.  This is income to me on my W2.  The Fee category does not accept an income category in the line item, even when you split the line.  All of my previously entered purchases with the discount now have the interest line hidden.  I have to switch the transaction type to see the hidden line.

Why does this matter?  As I stated the discount is income and I believe should appear in the income section of income and cash flow statements.  Allocating this to an expense category that is a credit (negative for income) instead of debit does track the dollars, but not correctly.  I have to explain it to may accountant every year or do a journal entry to move the balance to the correct account which should not be required.  Either way, it is a hassle.

Can we get the interest category  added back to the investment entry screen?

This may be related to BUG:322768 - Interest category and amount disappear when new fee entered in Dividend. Also, fixes for KEditWidget visibility issues.  I believe that widget visibility should be at the lowest common denominator.  That is if there is any question, show it and let the user choose to enter a value, even if the programmer does not agree.

Thank you
-- 
*Joe W. Byers* &quot;

My reply -
Ok, Joe. I hold my hand up here.  In fact, this goes back even further, to https://bugs.kde.org/show_bug.cgi?id=276322m, June 2011.  Here&apos;s the first paragraph, to give you the initial issue.

&quot;The problem shows best if the transaction form is enabled, but also is evident without the form.
If an existing cash dividend transaction is selected, the form shows widgets for Date, Amount, Total and Status, which is what is expected.
If that transaction is then opened for editing, additional widgets show for Security, Quantity and Price, which aren&apos;t expected for a cash dividend.
If, while the transaction is open for editing, &apos;Dividend&apos; is reselected, the additional fields disappear.  Similar behaviour occurs for Buy transactions.&quot;

This prompted a review of what action types needed what fields, partly bearing in mind the new user, and trying to avoid &apos;visual overload&apos;.

More recently, interest was reinstated for Sell transactions, and now we have a use case for Buy transactions, too.  I&apos;m happy to respond, but don&apos;t think to the extent of enabling everything on everything, though.

Allan</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424907</commentid>
    <comment_count>21</comment_count>
      <attachid>84654</attachid>
    <who name="allan">agander93</who>
    <bug_when>2014-01-15 13:08:47 +0000</bug_when>
    <thetext>Created attachment 84654
Reinstate Interest category for Buy activities. Also, Fix misbehaviour of Interest widget (flickering) in several activity types.

Reinstate Interest category for Buy activities. Also, Fix misbehaviour of Interest widget (flickering) in several activity types.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1424908</commentid>
    <comment_count>22</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2014-01-15 13:10:59 +0000</bug_when>
    <thetext>All tests OK now.

If no objections, I&apos;ll commit in a week or so.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1463697</commentid>
    <comment_count>23</comment_count>
    <who name="Cristian Oneț">onet.cristian</who>
    <bug_when>2014-07-31 09:58:34 +0000</bug_when>
    <thetext>Fix &apos;3edd6f3b1eb10aa075dc2ebc4c37be74f258722c&apos; committed by Allan.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480312</commentid>
    <comment_count>24</comment_count>
    <who name="Mehdi Tibouchi">mtibouchi+kdebugtrack</who>
    <bug_when>2014-11-09 02:43:24 +0000</bug_when>
    <thetext>(In reply to allan from comment #22)
&gt; All tests OK now.
&gt; 
&gt; If no objections, I&apos;ll commit in a week or so.

Apparently, this patch reinstating the interest field in Buy activities has never been committed; it is still not present in git today. Please do so! The problem is very jarring in the situation mentioned by J.W. Byers above (being allowed to buy company stock at a discount). For now we have to manually patch KMyMoney 4.7.1 to recover our previous workflow.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480335</commentid>
    <comment_count>25</comment_count>
    <who name="Cristian Oneț">onet.cristian</who>
    <bug_when>2014-11-09 10:40:19 +0000</bug_when>
    <thetext>Git commit 404d6279c74b8e93696f774fd04ac55d29307325 by Cristian Oneț.
Committed on 09/11/2014 at 10:27.
Pushed by conet into branch &apos;master&apos;.

Fix the missing interest category for &apos;Buy&apos; activities.

This fix is based on Allan&apos;s patch which is attached to the bug report
that I incorrectly thought to be fixed. I did some refactoring
because the readability of the investment activities was horrible. We
really should not have that kind of code in the application.

M  +29   -92   kmymoney/dialogs/investactivities.cpp
M  +1    -0    kmymoney/dialogs/investactivities.h
M  +12   -8    kmymoney/dialogs/investtransactioneditor.cpp

http://commits.kde.org/kmymoney/404d6279c74b8e93696f774fd04ac55d29307325</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480336</commentid>
    <comment_count>26</comment_count>
    <who name="Cristian Oneț">onet.cristian</who>
    <bug_when>2014-11-09 10:41:09 +0000</bug_when>
    <thetext>Git commit cd6b3c9a653096188097fba254360edda395a14f by Cristian Oneț.
Committed on 09/11/2014 at 10:27.
Pushed by conet into branch &apos;4.7&apos;.

Fix the missing interest category for &apos;Buy&apos; activities.

This fix is based on Allan&apos;s patch which is attached to the bug report
that I incorrectly thought to be fixed. I did some refactoring
because the readability of the investment activities was horrible. We
really should not have that kind of code in the application.
(cherry picked from commit 404d6279c74b8e93696f774fd04ac55d29307325)

M  +29   -92   kmymoney/dialogs/investactivities.cpp
M  +1    -0    kmymoney/dialogs/investactivities.h
M  +12   -8    kmymoney/dialogs/investtransactioneditor.cpp

http://commits.kde.org/kmymoney/cd6b3c9a653096188097fba254360edda395a14f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1480337</commentid>
    <comment_count>27</comment_count>
    <who name="allan">agander93</who>
    <bug_when>2014-11-09 10:48:53 +0000</bug_when>
    <thetext>(In reply to Cristian Oneț from comment #26)
&gt; Git commit cd6b3c9a653096188097fba254360edda395a14f by Cristian Oneț.
&gt; Committed on 09/11/2014 at 10:27.
&gt; Pushed by conet into branch &apos;4.7&apos;.
&gt; 
&gt; Fix the missing interest category for &apos;Buy&apos; activities.
&gt; 
&gt; This fix is based on Allan&apos;s patch which is attached to the bug report
&gt; that I incorrectly thought to be fixed. 

Thanks, Cristian, I had just starting to look into this.  Initially, I too, thought
that it had been committed, because of your following commit.

&gt; I did some refactoring
&gt; because the readability of the investment activities was horrible. We
&gt; really should not have that kind of code in the application.
&gt; (cherry picked from commit 404d6279c74b8e93696f774fd04ac55d29307325)
&gt; 
&gt; M  +29   -92   kmymoney/dialogs/investactivities.cpp
&gt; M  +1    -0    kmymoney/dialogs/investactivities.h
&gt; M  +12   -8    kmymoney/dialogs/investtransactioneditor.cpp
&gt; 
&gt; http://commits.kde.org/kmymoney/cd6b3c9a653096188097fba254360edda395a14f</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>83878</attachid>
            <date>2013-12-02 14:13:39 +0000</date>
            <delta_ts>2013-12-02 14:13:39 +0000</delta_ts>
            <desc>Patch to reinstate interest field in Sell activities.</desc>
            <filename>0001-BUG-276322-Unwanted-fields-show-in-ledger-for-invest.patch</filename>
            <type>text/plain</type>
            <size>4722</size>
            <attacher name="allan">agander93</attacher>
            
              <data encoding="base64">RnJvbSBlNmExZmQ2Y2JhYjJjNTU2ODllZTBjY2I4NTU3ZGZlZjVkZDcwMTgxIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGxhbiBBbmRlcnNvbiA8YWdhbmRlcjkzQGdtYWlsLmNvbT4K
RGF0ZTogV2VkLCAyNyBOb3YgMjAxMyAyMjo0MToxMyArMDAwMApTdWJqZWN0OiBbUEFUQ0hdIEJV
RzoyNzYzMjIgLSBVbndhbnRlZCBmaWVsZHMgc2hvdyBpbiBsZWRnZXIgZm9yIGludmVzdG1lbnQg
LQogcmVpbnN0YXRlIEludGVyZXN0IGNhdGVnb3J5IGZvciBTZWxsIGFjdGl2aXRpZXMuCgotLS0K
IGtteW1vbmV5L2RpYWxvZ3MvaW52ZXN0YWN0aXZpdGllcy5jcHAgICAgICAgIHwgMTcgKysrKysr
KysrKysrLS0tLS0KIGtteW1vbmV5L2RpYWxvZ3MvaW52ZXN0dHJhbnNhY3Rpb25lZGl0b3IuY3Bw
IHwgIDcgKysrKy0tLQogMiBmaWxlcyBjaGFuZ2VkLCAxNiBpbnNlcnRpb25zKCspLCA4IGRlbGV0
aW9ucygtKQoKZGlmZiAtLWdpdCBhL2tteW1vbmV5L2RpYWxvZ3MvaW52ZXN0YWN0aXZpdGllcy5j
cHAgYi9rbXltb25leS9kaWFsb2dzL2ludmVzdGFjdGl2aXRpZXMuY3BwCmluZGV4IGU0NzYwZTUu
Ljg0YzdlN2IgMTAwNjQ0Ci0tLSBhL2tteW1vbmV5L2RpYWxvZ3MvaW52ZXN0YWN0aXZpdGllcy5j
cHAKKysrIGIva215bW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Vnb3J5KGFjYywgTXlNb25leUZpbGU6Omluc3RhbmNlKCktPmluY29tZSgpKTsKIAotICAv
LyByZXR1cm4gaWQKICAgaWQgPSBhY2MuaWQoKTsKIH0KIAotLSAKMS44LjEuMgoK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>84654</attachid>
            <date>2014-01-15 13:08:47 +0000</date>
            <delta_ts>2014-01-15 13:08:47 +0000</delta_ts>
            <desc>Reinstate Interest category for Buy activities. Also, Fix misbehaviour of Interest widget (flickering) in several activity types.</desc>
            <filename>0001-BUG-276322-Reinstate-Interest-category-for-Buy-activ.patch</filename>
            <type>text/plain</type>
            <size>5494</size>
            <attacher name="allan">agander93</attacher>
            
              <data encoding="base64">RnJvbSBiZTE0NmFkOGRmNzc2MmYxNzBhYmNiNzJlYTk5MzFlMWM2ZGY2NzZjIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBBbGxhbiBBbmRlcnNvbiA8YWdhbmRlcjkzQGdtYWlsLmNvbT4K
RGF0ZTogV2VkLCAxNSBKYW4gMjAxNCAxMjo1OToyMiArMDAwMApTdWJqZWN0OiBbUEFUQ0hdIEJV
RzoyNzYzMjIgLSBSZWluc3RhdGUgSW50ZXJlc3QgY2F0ZWdvcnkgZm9yIEJ1eSBhY3Rpdml0aWVz
LgogQWxzbywgRml4IG1pc2JlaGF2aW91ciBvZiBJbnRlcmVzdCB3aWRnZXQgKGZsaWNrZXJpbmcp
IGluIHNldmVyYWwgYWN0aXZpdHkKIHR5cGVzLgoKLS0tCiBrbXltb25leS9kaWFsb2dzL2ludmVz
dGFjdGl2aXRpZXMuY3BwICAgICAgICB8IDEzICsrKysrLS0tLS0tLS0KIGtteW1vbmV5L2RpYWxv
Z3MvaW52ZXN0dHJhbnNhY3Rpb25lZGl0b3IuY3BwIHwgMTAgKysrKysrKy0tLQogMiBmaWxlcyBj
aGFuZ2VkLCAxMiBpbnNlcnRpb25zKCspLCA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