On Tue, 24 Sep 2013 22:44:09 +0100 David Houlden <djhoul...@gmail.com> wrote:
> On Tuesday 24 September 2013 13:28:47 aga wrote: > > Hi Cristian (and interested others, please) > > > > On Tue, 24 Sep 2013 10:05:26 +0300 > > > > Cristian Oneț <onet.crist...@gmail.com> wrote: > > > 2013/9/23 aga <agande...@gmail.com>: > > > [...] > > > > > > > If I open an existing reinvestdividend, which has an interest > > > > category already entered, the interest amount box should open > > > > and display the current amount. The amount box does not show. > > > > This is both without and with your patches. > > > > > > > > Resizing the window enables the amount widget to show, but I > > > > haven't yet found where it gets changed. > > > > I have this working correctly, now, however.... > > > > > This is caused by the special handling of the reinvest action in > > > InvestTransactionEditor::slotUpdateInterestVisibility which is > > > incorrect. I guess even with a reinvest action the interest > > > category-amount pair should work the same way like the fee > > > category-amount pair (show the amount if the category is not > > > empty). > > > > I've brought the reinvest handling in investactivities.cpp, into > > line with the fee handling. There was some redundant code there, > > where the functionality was already handled in > > InvestTransactionEditor::slotUpdateInterestVisibility(). > > > > > The code I just mentioned states that it tries do do one thing > > > ("don't ever hide the label") but it breaks this behavior. > > > > I don't think that's the case really. I interpret it as > > distinguishing between hiding a label and setting it to an empty > > string, which is what is done. However, I've just hidden the > > interest amount label and there's no apparent adverse effect. > > > > However, and I hope Dave Houlden and others may comment, I'm not > > sure about the amount actually being displayed here. In a reinvest > > dividend transaction, the dividend is used to purchase further > > shares/units. At the moment, when a category has been entered for > > the transaction, the Amount edit box also opens, which I think is > > confusing as it seems like an invitation to the user to enter an > > amount, when there should be no such amount, as the dividend has > > been used for the purchase. > > > > What do others think? > > > > Allan > > > > > Regards, > > > Cristian > > Hi Allan, > > I've not been following this one very closely so I'm a bit confused. > Are you discussing the behaviour of git master or git master plus > some patches (yours or Cristian's or both)? > > I certainly have reinvest dividend transactions where I enter both a > fee and interest amount. The interest amount is the net dividend paid > by the company. The fee amount is the charge they make for processing > the reinvestment. Interest minus fee is the amount used to purchase > shares. > > Could you please clarify what you want an opinion on and if I need > the patch(es) to see the behaviour then let me know where they are. > I'm more than happy to help. > > Dave. Hi Dave Apologies for not being clearer. No patches have as yet been submitted, so no input needed from you in that area. However, I'm in the process of developing a patch to get the columns to set themselves to sensible values, where each column is made wide enough for its data, with any additional window space given to the Details column. This is instead of the current situation, where no individual column may be resized, and, if someone has a need for a longish check number, then the only recourse is to stretch the window, but that extra space gets grabbed by the Detail column. Anyway, during that there was some difficulty getting the edit widgets to behave during a window resize. The most recent problem was with reinvest transactions, and the presence or otherwise of the Interest Amount widget. I began to wonder whether it should actually be displayed. In the simple case, the dividend amount is the quantity of shares x price. It's only necessary to add those details, and there is no need for the interest amount field. If a fee is entered, that is going to be deducted from the dividend amount, and presumably, is going to affect the quantity of shares allocated. I'm assuming that your incoming advice will give the correct actual quantity of shares, so you enter that and the price and the fee, so there again is no need for any entry in the interest field. The total field should reflect the true allocated dividend. So, if the actual quantity and price details are entered, and the fee, then that is all that is needed. The interest field is redundant, and no entry needs to be made. So for a reinvest it's not required and if you make an entry, it doubles up the amount while the transaction is open, but on saving the amount is correct. A Dividend payment does require that field, however, and an account needs to be entered to receive the money. In a Reinvest, there is no money to be transferred so no asset-account field is displayed. So, if you were able to follow that rambling, can you confirm, or otherwise, that you are able to enter just the quantity, price and fee and get the correct result. If I'm still unclear, let me know. Cheers Allan _______________________________________________ KMyMoney-devel mailing list KMyMoney-devel@kde.org https://mail.kde.org/mailman/listinfo/kmymoney-devel