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:
David Hampton
2007-04-04 04:58:07 +00:00
parent 09f8e28a83
commit 8c332ae13b
3 changed files with 10 additions and 5 deletions

View File

@@ -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;