After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 344966 - Account type compatibility to parent not checked when creating an account
Account type compatibility to parent not checked when creating an account
Status: VERIFIED FIXED
Product: GnuCash
Classification: Other
Component: User Interface General
git-master
Other Linux
: High normal
: ---
Assigned To: David Hampton
Chris Shoemaker
: 163685 (view as bug list)
Depends on:
Blocks: 347575
 
 
Reported: 2006-06-15 09:07 UTC by Andreas Köhler
Modified: 2018-06-29 21:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Andreas Köhler 2006-06-15 09:07:40 UTC
SVN r14352.

Before I forget it ;-)

* create an account e of type Expense
* create an account b of type Bank as child of e
* edit account e and click OK when the dialog pops up

Now GnuCash complains that it needs to make type changes (to e) to make both accounts compatible. This should have happened when clicking OK in the account _creation_ dialog.
Comment 1 Derek Atkins 2006-08-05 01:35:46 UTC
GnuCash should fail at step 2 and not let you do that, because Bank is not a valid subaccount of Expense.  So, yes, it should fail during the account creation (of account b).

Now, let's say the user creates 'b' as type Expense and then goes to change it to type Bank.  Again, GnuCash should not let the user do that.   Moreover, it should NOT ask if the user wants to change 'e', because then it has to go verify every account under e!  That's a lot of work and RARELY the right thing to do.

Now... Let's say a user has a tree type Bank, b:c:d and reparents b under e, of type Expense.  At this point GnuCash should not let the reparent happen due to the type.  BUT it should offer to change the type of b, c, and d.

I do not believe that r14591 properly fixes this bug.
Comment 2 Christian Stimming 2006-09-13 13:08:36 UTC
*** Bug 163685 has been marked as a duplicate of this bug. ***
Comment 3 Andreas Köhler 2006-10-14 18:49:48 UTC
As of r14899 the account create/edit dialog shows only account types that are compatible to the account parents type. All incompatibilities cause an error. Compatible type changes might have to confirm that the children should be adjusted accordingly.

So this bug could be called addressed now, right? Bug 163685 does not seem to be a duplicate in a strict sense, maybe it should be discussed there?
Comment 4 Derek Atkins 2006-10-15 17:23:38 UTC
True for trunk..  Should this change get backported to 2.0?  Is the fix isolated to r14899 or are there multiple changesets required?
Comment 5 Andreas Köhler 2006-10-18 10:26:04 UTC
Yes, true for trunk only. Backporting a fix would involve either r14591 or r14894-14899. You decide :) Hampton, did you take a look at this issue?
Comment 6 Christian Stimming 2006-11-04 22:20:24 UTC
The change would be useful for 2.0.x as well, for sure. If it's possible with moderate effort (and still small probability of messing up other stuff), then I'd appreciate a back-port. (The milestone is still for 2.0.x.)
Comment 7 Derek Atkins 2006-11-24 19:55:16 UTC
Backported r14894-14899 to 2.0 as r15141.
Fixed in 2.0.3
Comment 8 John Ralls 2018-06-29 21:08:14 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=344966. Please update any external references or bookmarks.