gnucash master: Multiple changes pushed
John Ralls
jralls at code.gnucash.org
Fri Aug 22 19:45:07 EDT 2014
Updated via https://github.com/Gnucash/gnucash/commit/dd10aab5 (commit)
via https://github.com/Gnucash/gnucash/commit/3f8718ea (commit)
via https://github.com/Gnucash/gnucash/commit/bad092a4 (commit)
from https://github.com/Gnucash/gnucash/commit/1134d64a (commit)
commit dd10aab53a3fde04f05fe6399496b36e625b4c37
Author: John Ralls <jralls at ceridwen.us>
Date: Thu Jul 31 12:00:06 2014 -0700
Balance ENTER with a LEAVE for all exit points.
For xaccLotFill and xaccLotScrubDoubleBalance, anyway.
commit 3f8718ea3bbbb980f6e18949e058fc3919e06925
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Aug 1 16:21:01 2014 -0700
Divide the value by the rate to get the amount.
Avoids overflowing the amount and is anyway much more realistic:
Value = Amount * price, so a large "rate" means a small price. Since
get_random_rate() is biased to producing large rates (denom is fixed
at 100), it was effectively testing infinitesimal prices.
commit bad092a46d61c5e5910a4707ed38d40883751bd9
Author: John Ralls <jralls at ceridwen.us>
Date: Fri Aug 1 16:15:52 2014 -0700
Prevent assigning capital gains splits to lots.
They're generated by lots, and when xaccSplitComputeCapGains sees one it grabs the originating lot which naturally doesn't balance.
Summary of changes:
src/engine/Scrub2.c | 28 +++++++++++++++++++++++-----
src/engine/cap-gains.c | 3 +++
src/engine/test-core/test-engine-stuff.c | 8 ++++----
3 files changed, 30 insertions(+), 9 deletions(-)
More information about the gnucash-patches
mailing list