From f5751f18bd28845f648adbb0e176d77c6fe16ab3 Mon Sep 17 00:00:00 2001 From: Vincent Paredes Date: Fri, 5 Aug 2016 17:01:17 +0200 Subject: [PATCH] fix account type for apivie --- modules/apivie/pages.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/apivie/pages.py b/modules/apivie/pages.py index 357232c0f9..ed6d6964ab 100644 --- a/modules/apivie/pages.py +++ b/modules/apivie/pages.py @@ -49,6 +49,8 @@ def _get_account(self, line): account = Account() account.id = self.parser.tocleanstring(tds[self.COL_ID]) 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)) -- GitLab