Commit 7fbe556a authored by Edouard Lambert's avatar Edouard Lambert Committed by Romain Bignon

fixing apivie : portfolio_share

parent f5751f18
......@@ -51,7 +51,6 @@ class AccountsPage(Page):
account.label = self.parser.tocleanstring(tds[self.COL_LABEL])
# It's safe to assume that apivie does only life insurance
account.type = Account.TYPE_LIFE_INSURANCE
balance_str = self.parser.tocleanstring(tds[self.COL_AMOUNT])
account.balance = Decimal(FrenchTransaction.clean_amount(balance_str))
account.currency = account.get_currency(balance_str)
......@@ -75,7 +74,7 @@ class InvestmentsPage(Page):
inv.valuation = Decimal(FrenchTransaction.clean_amount( \
self.parser.tocleanstring(tds[self.COL_VALUATION])))
inv.portfolio_share = Decimal(FrenchTransaction.clean_amount( \
self.parser.tocleanstring(tds[self.COL_PORTFOLIO_SHARE])))
self.parser.tocleanstring(tds[self.COL_PORTFOLIO_SHARE]))) / 100
yield inv
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment