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 703298 - Opening an unposted invoice dirties the book
Opening an unposted invoice dirties the book
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Business
2.4.x
Other All
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2013-06-29 04:27 UTC by Mike Alexander
Modified: 2018-06-29 23:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Mike Alexander 2013-06-29 04:27:12 UTC
Opening an unposted invoice marks the current book as dirty even if no change is ever made to the invoice.  This happens when gnc_entry_ledger_load creates a blank ledger entry at the end of the invoice (so you can add a new item to the invoice).  This causes the invoice and hence the book to be marked dirty.  Note that when you save the file, this blank entry is not written out.  This means that if you open a file that had an unposted invoice open when it was closed, it will be dirty immediately after opening it.

Note that I'm using the XML backend, the SQL backends would have somewhat different behavior, but I suspect it is wrong too.
Comment 1 R Ratliff 2013-12-10 21:25:41 UTC
I can confirm this on the XML backend on Linux.
Comment 2 Geert Janssens 2013-12-11 14:50:20 UTC
I also see this behaviour on Fedora 19, and even in 2.4.13.
Comment 3 John Ralls 2017-09-24 22:19:55 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 4 John Ralls 2018-06-29 23:17:05 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=703298. Please continue processing the bug there and please update any external references or bookmarks.