mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 12:41:49 +02:00
fix Person.query.get_by_ids calls
This commit is contained in:
parent
97729a723e
commit
8d9cb82569
1 changed files with 4 additions and 4 deletions
|
@ -323,11 +323,11 @@ class BillForm(FlaskForm):
|
||||||
|
|
||||||
def export(self, project):
|
def export(self, project):
|
||||||
return Bill(
|
return Bill(
|
||||||
self.amount.data,
|
float(self.amount.data),
|
||||||
self.date.data,
|
self.date.data,
|
||||||
self.external_link.data,
|
self.external_link.data,
|
||||||
self.original_currency.data,
|
str(self.original_currency.data),
|
||||||
Person.query.get_by_ids(project, self.payed_for.data),
|
Person.query.get_by_ids(self.payed_for.data, project),
|
||||||
self.payer.data,
|
self.payer.data,
|
||||||
project.default_currency,
|
project.default_currency,
|
||||||
self.what.data,
|
self.what.data,
|
||||||
|
@ -339,7 +339,7 @@ class BillForm(FlaskForm):
|
||||||
bill.what = self.what.data
|
bill.what = self.what.data
|
||||||
bill.external_link = self.external_link.data
|
bill.external_link = self.external_link.data
|
||||||
bill.date = self.date.data
|
bill.date = self.date.data
|
||||||
bill.owers = Person.query.get_by_ids(project, self.payed_for.data)
|
bill.owers = Person.query.get_by_ids(self.payed_for.data, project)
|
||||||
bill.original_currency = self.original_currency.data
|
bill.original_currency = self.original_currency.data
|
||||||
bill.converted_amount = self.currency_helper.exchange_currency(
|
bill.converted_amount = self.currency_helper.exchange_currency(
|
||||||
bill.amount, bill.original_currency, project.default_currency
|
bill.amount, bill.original_currency, project.default_currency
|
||||||
|
|
Loading…
Reference in a new issue