#337 reinvested dividends won't post

CVS Head
open
3
2009-07-23
2009-01-03
awmach
No

Really 0.9.2 compiled from source on kde 3.5.10-3.fc10.

Tried to enter a reinvested dividend. The security was originally configured for shares and price per share. I entered both fields and ended up with a long fractional value - which is perhaps why it refused to post the first time.

Changed the security to enter total value of shares. Still didn't want to post the transaction.

Eventually duplicated an old reinvested dividend and then edited it to match the new values. Posted the edits just fine.

Discussion

  • Alvaro Soliverez

    • milestone: 164653 --> CVS Head
     
  • Alvaro Soliverez

    I tried to reproduce it here, and no luck. Perhaps it does not have to do with the type of operation but with the precision you set for that stock?

     
  • awmach

    awmach - 2009-03-28

    Tried again with 0.9.3 code. Perhaps there is a precision problem, but it still persists. You can enter all the fields (number of shares and price per share) and it creates a transcation price value (set for price/share for the security) which does have a fractional decimal place way out there, but the Enter button never gets highlighted.

    Again - when editing the duplicated transaction - everything is OK. If there was a problem with some decimal places, then you shouldn't be able to post the newly edited duplicated transaction either.

     
  • Alvaro Soliverez

    Can you attach an anonymized and tell us which stock you are having this problem with?

    Thanks!

     
  • Thomas Baumgart

    Thomas Baumgart - 2009-07-07

    Dear KMyMoney user,

    thank you for opening a tracker item on our bug tracker and giving us valuable feedback about a problem with the application.

    Our initial analysis of the problem did not give us enough information to solve the issue and we asked for more information a while back. As of now, we did not see a response from you. Please take some time to help us solving the issue.

    In case we don't hear from you, we consider the case as closed and mark it as such in the near future.

    Thank you for your support.

    The KMyMoney development team

     
  • Thomas Baumgart

    Thomas Baumgart - 2009-07-23
    • status: open --> pending
     
  • awmach

    awmach - 2009-07-23
    • status: pending --> open
     
  • awmach

    awmach - 2009-07-23

    It's not for a lack of trying. I tried creating an artificial account, but the first reinvested dividend posted fine. That didn't change the problems with the live accounts though.

    For this particular stock, shares are distributed to 6 decimal places and prices are listed to four. A typical transaction would be .549761 shares at 42.6185 dollars per share. This yields a fractional dollar amount for the transaction and it refuses to come up with a highlighted enter button so it can be posted.

    The stock is listed as price per share. If I change it to total for transaction, then that amount is transferred down to the total price field, but the post buttons still stay grayed out. There is no Fees, Interest (Short term/Long Term capital gain) or memo associated with the purchase.

    I can still copy a previously entered reinvested dividend and change the fields during edit putting in the same information and it will take the edit just fine.

     
  • Thomas Baumgart

    Thomas Baumgart - 2009-07-23

    Looking at the code, the enter button is enabled in case of a reinvest dividend if

    a) a security is selected
    b) an interest account has been selected
    c) the number of shares is not equal to zero
    d) the price is not equal to zero

    Do you have all of the above? Making the enter button available is not related to any fraction whatsoever.

     
  • awmach

    awmach - 2009-07-23

    I'm not where I can test it, but I believe I was forgetting the interest account. Mark it closed (and flag it stupid). Sorry for the bother (as a programmer I hate that).

    I'm not sure how it handles the fractional cost, but it might be nice if it would round out the transaction amount (for price/share) to cents (or the smallest unit in the account currency) when displayed. When it came up with the non-even amount, I just assumed that was where the problem was without thinking about the other side of the transaction. I've been doing double entry bookkeeping long enough I should have thought of that, but when your eyes are drawn to some other perceived problem it's easy to overlook the obvious. Sigh. My apologies.

     
  • Thomas Baumgart

    Thomas Baumgart - 2009-07-23
    • priority: 5 --> 3
    • assigned_to: nobody --> ipwizard
     
  • Thomas Baumgart

    Thomas Baumgart - 2009-07-23

    I leave it open for now and we should check into the fraction thing. I think I changed something regarding a large fractional part in the investment logic somewhere, but I can't remember. So please double check and report back if the problem is still around or not.

     
  • awmach

    awmach - 2009-07-23

    I think what is confusing is simply the field identifier of Interest. I don't think of dividends as interest. What about changing that field based on the transaction type - bonds could use interest, stocks could say dividend, stock sales could say capital gain/loss and the like.