From 09171853f45a6eb7e1699db13b8f0d66f88e034d Mon Sep 17 00:00:00 2001 From: Maxime Pommier Date: Wed, 26 Jun 2019 14:09:14 +0200 Subject: [PATCH] [banquepopulaire] Added bdate to transactions --- modules/banquepopulaire/pages.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/banquepopulaire/pages.py b/modules/banquepopulaire/pages.py index 5a27b6af10..f3a18aaeed 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 -- GitLab