diff --git a/modules/banquepopulaire/pages.py b/modules/banquepopulaire/pages.py index 5a27b6af10847d54ad995215913b24b6c920157b..f3a18aaeed3980c2d438016246feabb6106a7d1c 100644 --- a/modules/banquepopulaire/pages.py +++ b/modules/banquepopulaire/pages.py @@ -842,6 +842,7 @@ def get_account_history(self): debit = cleaner(tds[self.COL_DEBIT]) credit = cleaner(tds[self.COL_CREDIT]) + t.bdate = Date(dayfirst=True).filter(cleaner(tds[self.COL_COMPTA_DATE])) t.parse(date, re.sub(r'[ ]+', ' ', raw), vdate) t.set_amount(credit, debit) t._amount_type = 'debit' if t.amount == debit else 'credit' @@ -900,7 +901,7 @@ def get_card_history(self, account, coming): t.parse(debit_date, re.sub(r'[ ]+', ' ', label)) t.set_amount(amount) - t.rdate = t.parse_date(date) + t.rdate = t.bdate = t.parse_date(date) t.original_currency = currency if not t.type: t.type = Transaction.TYPE_DEFERRED_CARD