GnuCash
Contact   Instructions
Bug 645379 - When duplicating a transaction, any non-numeric value entered in the "Number" field is discarded
Summary: When duplicating a transaction, any non-numeric value entered in the "Number"...
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: Register (show other bugs)
Version: 2.4.x
Hardware: Other All
: Normal normal
Target Milestone: ---
Assignee: ui
QA Contact: ui
URL:
Whiteboard:
Keywords:
: 724423 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-21 05:25 EDT by Colin Scott
Modified: 2020-12-30 06:23 EST (History)
7 users (show)

See Also:


Attachments

Description Colin Scott 2011-03-21 05:25:27 EDT
When duplicating a transaction (Transaction / Duplicate Transaction), values are requested for the new transaction's Date and Number fields.  However, if the value entered for the Number is non-numeric, it is discarded, and the Number field in the new transaction is left blank.

The Number field, whilst designed to support incrementing numeric values, accepts non-numeric values during normal data entry into the register.  From the user's point of view, the duplicate transaction operation should not behave any different.

(And NB - please do not even *think* of enforcing numeric data in the number field - it would render gnucash useless in many applications!!!  :-)
Comment 1 Frank H. Ellenberger 2011-03-21 22:35:44 EDT
Yes I am also using a beginning letter for the folder, where the voucher is stored.

* The register has no restrictions for the number field,
* The Action->"Transfer Funds" dialogue has no restriction, but
* Transaction->"Duplicate Transaction" has.

OTOH: Register has the +/- funtionality to change the number and Duplicate Transaction has a similar functionality with the up/down buttons. So I fear other users could miss this. But then again the number of the old or last transaction is not remembered by the dialog and so this functionality is of less use.

So I think we should replace or tweak the GTKSpinButton to allow non numeric input. I do not really understand ste meaning of the "numeric" property, which the buton could have.
Comment 2 Bob 2020-11-08 08:14:29 EST
I have changed the duplicate transaction dialog to use GtkEntry widgets instead of the GtkSpinbuttons which is the same as the register and transfer dialog.

This will be in the next nightly or version 4.3
Comment 3 Bob 2020-11-08 08:16:07 EST
*** Bug 724423 has been marked as a duplicate of this bug. ***
Comment 4 Wm 2020-12-30 06:23:48 EST
I'm getting unexpected behaviour in the Num field in 4.4 (and 4.3 and 4.2 but I wasn't noticing the quick change) and this seems to be the most likely change that has caused it.

I think this should be opened again
OR
point me to the "fix" that made the change so I can look at that
OR
I can start a new bug

I think the underlying issue isn't so much the duplication so much as the overuse of the field.

To be clear: I think the main problem is database laziness that we have discussed before.

Ergo: we have a "field" called "Num" that has multiple uses and purposes.  Of course something is going to go wrong!

If you want to see how weird things can get, create a tx with splits and then toggle File / Properties / Accounts / Use split action field

weird things happen because the field is overused.  We *know* the database needs to be fixed!

Re-open this and add this to the pressure point for db work.

If you think this was fixed you are wrong.

Note You need to log in before you can comment on or make changes to this bug.