Commit 872f3fff authored by Maxime Pommier's avatar Maxime Pommier Committed by Romain Bignon

[fortuneo] Add bdate

parent 7599809e
......@@ -291,6 +291,12 @@ class AccountHistoryPage(LoggedPage, HTMLPage):
amount = tables[i].xpath("./td[5]/text() | ./td[6]/text()")
operation.parse(date=date_oper, raw=label, vdate=date_val)
# There is no difference between card transaction and deferred card transaction
# on the history.
if operation.type == FrenchTransaction.TYPE_CARD:
operation.bdate = operation.rdate
# Needed because operation.parse overwrite operation.label
# Theses lines must run after operation.parse.
if tables[i].xpath("./td[4]/div/text()"):
......@@ -327,7 +333,7 @@ class CardHistoryPage(LoggedPage, HTMLPage):
tr = Transaction()
tr.parse(date=date, raw=raw)
tr.rdate = tr.parse_date(rdate)
tr.rdate = tr.bdate = tr.parse_date(rdate)
if credit:
tr.amount = CleanDecimal(None, replace_dots=True).filter(credit)
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