GNOME Bugzilla – Bug 644044
Lots: SQL backend loses link to Gain/Loss Txn
Last modified: 2018-06-29 22:54:35 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).
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.
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.