diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py index a9780faa..7f34e56e 100644 --- a/ihatemoney/forms.py +++ b/ihatemoney/forms.py @@ -193,7 +193,7 @@ class BillForm(FlaskForm): bill.date = self.date.data bill.owers = [Person.query.get(ower, project) for ower in self.payed_for.data] bill.original_currency = self.original_currency.data - bill.original_amount = self.currency_helper.exchange_currency(bill.amount, bill.original_currency, project.default_currency) + bill.original_amount = self.currency_helper.exchange_currency(float(bill.amount), bill.original_currency, project.default_currency) return bill