[GNC-dev] gnucash maint: Bug 797677 - Price Database Saving Wrong Price for Foreign Currency
Geert Janssens
geert.gnucash at kobaltwit.be
Wed Apr 15 04:50:13 EDT 2020
Op dinsdag 14 april 2020 23:27:00 CEST schreef John Ralls:
> 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);
Ok, that explains the additional diff on master.
So nevermind.
Regards,
Geert
More information about the gnucash-devel
mailing list