Commit d5fa29a3 authored by Maxime Pommier's avatar Maxime Pommier Committed by ntome

[creditdunord] Added bdate to transactions

parent 598f2530
......@@ -628,6 +628,7 @@ class TransactionsPage(LoggedPage, CDNBasePage):
if account.type is Account.TYPE_CARD and MyStrip(line[self.COL_DEBIT_DATE]):
date = vdate = Date(dayfirst=True).filter(MyStrip(line[self.COL_DEBIT_DATE]))
t.bdate = Date(dayfirst=True, default=NotAvailable).filter(MyStrip(line[self.COL_DATE]))
else:
date = Date(dayfirst=True, default=NotAvailable).filter(MyStrip(line[self.COL_DATE]))
if not date:
......@@ -788,6 +789,7 @@ class ProTransactionsPage(TransactionsPage):
if account.type is Account.TYPE_CARD:
date = vdate = Date(dayfirst=True, default=None).filter(tr['dateval'])
t.bdate = Date(dayfirst=True, default=NotAvailable).filter(tr['date'])
else:
date = Date(dayfirst=True, default=None).filter(tr['date'])
vdate = Date(dayfirst=True, default=None).filter(tr['dateval']) or date
......
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