New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-appearing ghost accounts #295

Closed
hsoft opened this Issue Jun 22, 2013 · 2 comments

Comments

Projects
None yet
1 participant
@hsoft
Owner

hsoft commented Jun 22, 2013

From email:

The last account that was deleted keeps reappearing as an income account. It doesn't affect any totals because it doesn't have any transactions in it. But even more weird: the accounts were altered slightly again at a later date and, again the last account to be deleted keeps reappearing.

Then I asked:

  1. You say the account is empty. So when you delete it, you're not asked to re-assign any transaction upon account deletion right?
  2. Is it possible that a schedule or a budget still targets this account?
  3. At what moment exactly does this account re-appear. When you modify a transaction? When you open the file? Both?

And was answered:

  1. The transactions in the account were moved using mass editing PRIOR to deleting the account, so at the time it was deleted, the account was empty. Many transactions were moved and accounts deleted on the days this happened, the ones reappearing are the last to be deleted (or the last alphabetically - I think it was the same as I did them in order) on the days in question. They were both expense accounts and reappear as income accounts, but I think I can understand how this might be the case. The accounts are empty when they reappear.
  2. Budgets are not used for this document at all, but I think you're on to something with schedules. The cleaner's wages are paid every four weeks and I set up a scheduled transaction for this. I fairly the accounts that are reappearing are the expense accounts that were used for this. I don't look on the Schedules tab very often, because when changed occur during the life of a scheduled transaction (such as a change in the wage of the cleaner, or the account to which the expense is allocated, for example) are not updated here. I did as a result of your enquiry and found that the "to" field is empty. Deleting the scheduled transaction, deletes ALL of the transactions ever. I tried stopping the existing schedule and setting up a new one, but that doesn't solve the problem. Now I can't remove the stop date - I usually end any recurring donations by simply deleting the one that doesn't appear and choosing "all future transactions" - I then later delete the recurring transaction in the Schedules tab whenever I'm doing some "housekeeping". I think this is where to focus but can you tell me if it is possible to remove the stop date - I should then make a copy before I try anything else! ;-)
  3. They reappear on opening the file. ie once deleted, I don't see them again (I think!) unless I close the file and then open it again.

And also:

I tried deleting the cleaner's wages scheduled transaction in the bank account and choosing "all future transactions" and then saving the file, closing it and reopening it, but the two offending accounts still reappear.

@hsoft hsoft closed this Jun 22, 2013

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

I could reproduce the bug by assigning schedule spawns to an account (thus creating an exception spawn) and then delete that account. The exception spawn wouldn't be correctly reassigned and would thus become a ghost account.

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(from [5f9f771bbbac]) [#295 state:fixed] Fixed a ghost account issue by making account reassignment upon account deletion also affect schedule exception (global and local).
https://bitbucket.org/hsoft/moneyguru/changeset/5f9f771bbbac/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment