Hello ACCOUNTS blog readers.
I think I have discovered a bug, but I want to run it by you all before I change it. It has to do with the fact that it appears that hidden accounts are appearing on drop-down lists of accounts you can use in transactions, when they shouldn’t.
The one time that I believe hidden accounts should appear in drop-downs, is if you are editing an existing transaction, that already used that hidden account. Otherwise you wouldn’t be able to see that already-used account.
The time that it seems the program is displaying them anyways, when it shouldn’t, is when it’s a new transaction being edited (one you haven’t saved yet), but the main account you are working on (say, a bank account you are in the register window for) has ever in the past had some transaction that included that hidden account.
I can’t really see why I originally decided to program it that way, and now it appears to me that it is just annoying – you will always see hidden accounts in the drop-down account lists of a register window that ever had a transaction using that account.
The whole point, in my mind, of hidden accounts, is “this is an account I used to use, but don’t any more”. So I don’t want to see it, merely because I used it in the past in this same register!
The same probably applies to entering transactions in other windows like Write Cheques etc. – the wrong behaviour would apply if any past transaction on the bank account you were writing cheques for ever used that hidden account.
Does this make sense to you, that I should remove that behaviour, so the only time a hidden account is shown is when you are editing an existing transaction that already used it? Of course, if you need to use it again in a new transaction, for some reason, you can always go to the Chart of Accounts window, edit the account, and un-hide it.
As always, you can reply by adding a Comment on this blog post, or by direct email. Thank you.
By the way, out of interest, the way I ran into this bug was that I was doing what programmers call “eating your own dog food”, namely actually using the program in production for a real organization (a non-profit I’m involved with as Treasurer). I had some accounts that were used early last year, but that we stopped using, but they kept coming up when entering new transactions and it was annoying!