gnucash maint: Bug 797677 - Price Database Saving Wrong Price for Foreign Currency

John Ralls jralls at code.gnucash.org
Tue Apr 14 17:27:00 EDT 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/218e18a4 (commit)
	from  https://github.com/Gnucash/gnucash/commit/8f68d542 (commit)



commit 218e18a433b8670620d2a83c7bfebe153d1c90fd
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Apr 14 14:24:37 2020 -0700

    Bug 797677 - Price Database Saving Wrong Price for Foreign Currency
    
    Don't round prices for storage, only for display.

diff --git a/gnucash/gnome-utils/dialog-transfer.c b/gnucash/gnome-utils/dialog-transfer.c
index fa4edec3a..70a1aec77 100644
--- a/gnucash/gnome-utils/dialog-transfer.c
+++ b/gnucash/gnome-utils/dialog-transfer.c
@@ -1634,7 +1634,6 @@ new_price(XferDialog *xferData, time64 time)
     else if (from == gnc_default_currency() && to != gnc_default_currency())
         value = swap_commodities (&from, &to, value);
 
-    value = round_price (from, to, value);
     price = gnc_price_create (xferData->book);
     gnc_price_begin_edit (price);
     gnc_price_set_commodity (price, from);



Summary of changes:
 gnucash/gnome-utils/dialog-transfer.c | 1 -
 1 file changed, 1 deletion(-)



More information about the gnucash-changes mailing list