From 7fbe556a3741a4e9e2042b34d4aa40aca892e14e Mon Sep 17 00:00:00 2001 From: Edouard Lambert Date: Mon, 8 Aug 2016 12:03:54 +0200 Subject: [PATCH] fixing apivie : portfolio_share --- modules/apivie/pages.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/apivie/pages.py b/modules/apivie/pages.py index ed6d6964ab..114fb4949f 100644 --- a/modules/apivie/pages.py +++ b/modules/apivie/pages.py @@ -51,7 +51,6 @@ def _get_account(self, line): 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 @@ def iter_investment(self): 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 -- GitLab