Commit f5751f18 authored by Vincent Paredes's avatar Vincent Paredes Committed by Romain Bignon

fix account type for apivie

parent 7bcb4bcf
......@@ -49,6 +49,8 @@ class AccountsPage(Page):
account = Account() = 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))
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