AUDIT: r17409 - gnucash/trunk/src/engine - Bug #454827: Don't round derived commodity prices until the very last step.

Charles Day cedayiv at cvs.gnucash.org
Sun Jul 27 01:41:01 EDT 2008


Author: cedayiv
Date: 2008-07-27 01:41:01 -0400 (Sun, 27 Jul 2008)
New Revision: 17409
Trac: http://svn.gnucash.org/trac/changeset/17409

Modified:
   gnucash/trunk/src/engine/gnc-pricedb.c
Log:
Bug #454827: Don't round derived commodity prices until the very last step.
BP


Modified: gnucash/trunk/src/engine/gnc-pricedb.c
===================================================================
--- gnucash/trunk/src/engine/gnc-pricedb.c	2008-07-25 21:42:49 UTC (rev 17408)
+++ gnucash/trunk/src/engine/gnc-pricedb.c	2008-07-27 05:41:01 UTC (rev 17409)
@@ -1883,8 +1883,8 @@
           (!gnc_numeric_zero_p(currency_price_value)));
 
   balance = gnc_numeric_mul (balance, currency_price_value,
-                             gnc_commodity_get_fraction (new_currency),
-                             GNC_HOW_RND_ROUND);
+                             GNC_DENOM_AUTO,
+                             GNC_HOW_DENOM_EXACT | GNC_HOW_RND_NEVER);
   balance = gnc_numeric_mul (balance, gnc_price_get_value (price),
                              gnc_commodity_get_fraction (new_currency),
                              GNC_HOW_RND_ROUND);



More information about the gnucash-changes mailing list