Currency: switching back to "no currency" gives unexpected results

Fixes #599
This commit is contained in:
Glandos 2020-07-26 16:03:35 +02:00
parent 219f308e8c
commit 2e9e656acd

View file

@ -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
)