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 791429 - Feature Request: Subaccount renumbering tool, add option to insert leading zeros
Feature Request: Subaccount renumbering tool, add option to insert leading zeros
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Register
git-master
Other Windows
: Normal enhancement
: ---
Assigned To: gnucash-ui-maint
gnucash-ui-maint
Depends on:
Blocks:
 
 
Reported: 2017-12-10 05:31 UTC by CDB-Man
Modified: 2018-06-30 00:01 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description CDB-Man 2017-12-10 05:31:22 UTC
Refer to IRC transcripts here for additional info:
https://lists.gnucash.org/logs/2017/12/09.html#T15:08:18

If the account renumbering tool is used, the tool's string treatment of account causes renumbering issues as follows:

Case 1: Without leading zeros:
Old account number --> new account number
01-10-1 --> 01-10-1
01-10-11 --> 01-10-2
01-10-2 --> 01-10-3

Case 2: With leading zeros:
Old account number --> new account number
01-10-01 --> 01-10-1
01-10-02 --> 01-10-2
01-10-11 --> 01-10-3

The current implementation of account renumbering will always produce case 1, as the tool currently does not insert leading zeros.  User needs to manually insert leading zeros for the renumbering tool to properly pickup on the account numbers, which at that point, the user may as well manually renumber everything.

The feature request: default the renumbering tool to always insert leading zeros, or at least provide this as a checkbox option on the dialogue box.  Leading zeros will allow all future renumberings to proceed correctly, without need to get the renumbering tool to be able to parse out the integers (the renumbering tool can remain treating everything as string).
Comment 1 John Ralls 2018-06-30 00:01:37 UTC
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=791429. Please continue processing the bug there and please update any external references or bookmarks.