Commit d5fa29a3 authored by Maxime Pommier's avatar Maxime Pommier Committed by hydrargyrum
Browse files

[creditdunord] Added bdate to transactions

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