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 644044 - Lots: SQL backend loses link to Gain/Loss Txn
Lots: SQL backend loses link to Gain/Loss Txn
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Backend - SQL
git-master
Other All
: Normal normal
: ---
Assigned To: Phil Longstaff
Geert Janssens
Depends on:
Blocks:
 
 
Reported: 2011-03-06 21:58 UTC by John Ralls
Modified: 2018-06-29 22:54 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John Ralls 2011-03-06 21:58:45 UTC
This is easily tested by entering a sell, scrubbing it to produce the gain/loss transaction, and quitting, then restarting, viewing lots, and scrubbing the lot again. A new transaction will be created.

Probable cause: Lots functions aren't transactional (i.e., they rely on the global save to save their KVP data).
Comment 1 John Ralls 2013-11-25 21:13:11 UTC
Fixed, r23437.

Probable cause was half correct. xaccSplitComputeCapGains had an edit/commit around the gains txn but also wrote to the sell txn's split KVP without an edit/commit for that txn.
Comment 2 John Ralls 2018-06-29 22:54:35 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=644044. Please update any external references or bookmarks.