Menu

#61 Moving child confuses parent totals

FreeCoins_0.6.x
open
FreeCoins (35)
5
2006-05-24
2006-05-24
Ken Mankoff
No

If I move a child account somewhere else, the parent
totals are no longer correct. This occurs almost 100%
of the time when the child is a different currency than
the parent. It appears to occur occasionally when the
child and parent are the same currency.

Sorry if this is kind of vague. I will try to create a
duplicatable set of instructions for this bug.

Discussion

  • Ken Mankoff

    Ken Mankoff - 2006-05-24

    Logged In: YES
    user_id=192791

    OK, I have a repeatable set to demonstrate this:

    new account: foo
    new account: bar, balance=1000
    new account: baz, parent=foo
    Baz: new transaction, acct=bar, amt=42, [deposit]
    bar=958, baz=42, foo=0 (correct!)
    baz: account details, parent=bar
    bar=958, baz=42, foo=0 (correct!)
    colapse bar, bar=958, not 1000 (NOT correct!)

     
  • Ken Mankoff

    Ken Mankoff - 2006-05-28

    Logged In: YES
    user_id=192791

    Further testing. The algorithm works correctly for the
    simple test case outlined here if all transactions are
    cleared. It does not work if they are not cleared.

    The algorithm does not work when there are multiple
    currencies regardless of clear/unclear state.

     

Log in to post a comment.

MongoDB Logo MongoDB