mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Implement idea from Mike Alexander (in #346063) to key lot scrubbing
off the environment variable GNC_AUTO_SCRUB_LOTS instead of commenting it out of the code. This make it easier for developers to test/users to try lot scrubbing. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15791 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -1021,7 +1021,8 @@ xaccTransCommitEdit (Transaction *trans)
|
||||
/* Get the cap gains into a consistent state as well. */
|
||||
|
||||
/* Lot Scrubbing is temporarily disabled. */
|
||||
//xaccTransScrubGains (trans, NULL);
|
||||
if (g_getenv("GNC_AUTO_SCRUB_LOTS") != NULL)
|
||||
xaccTransScrubGains (trans, NULL);
|
||||
|
||||
/* Allow scrubbing in transaction commit again */
|
||||
scrub_data = 1;
|
||||
|
||||
Reference in New Issue
Block a user