From 2e9e656acd78d5553f18e5cdff9a5b7c25848d84 Mon Sep 17 00:00:00 2001 From: Glandos Date: Sun, 26 Jul 2020 16:03:35 +0200 Subject: [PATCH] Currency: switching back to "no currency" gives unexpected results Fixes #599 --- ihatemoney/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ihatemoney/web.py b/ihatemoney/web.py index 576d6e10..90371695 100644 --- a/ihatemoney/web.py +++ b/ihatemoney/web.py @@ -423,7 +423,7 @@ def edit_project(): continue if project.default_currency == CurrencyConverter.no_currency: - # Use old currency before stripping + # Use old currency to flatten all amount before stripping bill.converted_amount = CurrencyConverter().exchange_currency( bill.amount, bill.original_currency, old_currency )