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 646107 - Duplicate Invoice button corrupts original invoice & blank new invoice
Duplicate Invoice button corrupts original invoice & blank new invoice
Status: RESOLVED DUPLICATE of bug 647360
Product: GnuCash
Classification: Other
Component: Business
2.4.x
Other Windows
: Normal normal
: ---
Assigned To: Derek Atkins
Christian Stimming
Depends on:
Blocks:
 
 
Reported: 2011-03-29 14:25 UTC by Peter
Modified: 2018-06-29 22:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
small test file with corrupted records (11.82 KB, application/x-gnucash)
2011-03-29 14:44 UTC, Peter
Details

Description Peter 2011-03-29 14:25:58 UTC
Steps
- Find and display invoice to duplicate
- Click on Duplicate Invoice button
- Accept the pop up box
- New invoice is now displayed

The new invoice is displayed with the new invoice number, name of employee / company, but no transactions are displayed from the invoice it was duplicated from.

Returning back to the original invoice that was used for the duplication, where the original has 3 lines (for example) now shows 4 lines for each original line.

Bug is repeatable. Using the same original invoice now with 4 lines per original line will create another 3 lines per original line.
Comment 1 Christian Stimming 2011-03-29 14:39:20 UTC
This feature contained an error in version 2.4.3, but should have been fixed in 2.4.4. Can you attach a small example gnucash file so that we can reproduce your bug?
Comment 2 Peter 2011-03-29 14:44:09 UTC
Created attachment 184591 [details]
small test file with corrupted records

Thanks for the response. I installed the latest version 2.4.4 to retest the problem and found it to exist.

Further more, found that when duplicating the invoice and decided not to accept it and clicking cancel still creates the new empty duplicate.
Comment 3 Christian Stimming 2011-04-18 11:54:30 UTC
*** This bug has been marked as a duplicate of bug 647360 ***
Comment 4 Christian Stimming 2011-04-18 11:56:06 UTC
The nightly build 2.4.5 r20564 should have this fixed. Can you check here:
http://code.gnucash.org/builds/win32/2.4/
Comment 5 Peter 2011-04-19 15:03:52 UTC
(In reply to comment #4)
> The nightly build 2.4.5 r20564 should have this fixed. Can you check here:
> http://code.gnucash.org/builds/win32/2.4/

Hi Christian,
Looks good for me.

Duplicated the same Expense Voucher multiple times and each duplicated Expense Voucher looked the same as the original. The original remained the same as first created, ie no multiple records created.

In reply 2011-03-29 14:44:09 UTC I wrote the following:
   Further more, found that when duplicating the invoice and decided not to accept
   it and clicking cancel still creates the new empty duplicate.

This is still occuring. Do you want this raised as a new issue?

Thanks for fixing this problem.
Comment 6 Christian Stimming 2011-04-19 15:10:01 UTC
>In reply 2011-03-29 14:44:09 UTC I wrote the following:
>   Further more, found that when duplicating the invoice and decided not to
>accept
>   it and clicking cancel still creates the new empty duplicate.
>
>This is still occuring. Do you want this raised as a new issue?

Yes, that would be a separate issue. The question window which is shown there doesn't quite react to the "Cancel" button... hm... getting the connection in there to "cancel the duplication" isn't completely easy, but would require some non-trivial changes to the UI logic. Well, just file it as a new issue, but it won't be worked on with high priority, though.
Comment 7 Peter 2011-04-19 15:26:28 UTC
ok. I'll do that.
Comment 8 John Ralls 2017-09-24 22:45:53 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 9 John Ralls 2018-06-29 22:55:51 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=646107. Please update any external references or bookmarks.