Commit 39d0443b authored by Maxime Pommier's avatar Maxime Pommier Committed by ntome

[cragr] Add bdate

parent 275bd7e6
......@@ -477,6 +477,7 @@ class CardHistoryPage(LoggedPage, JsonPage):
obj_label = CleanText(Dict('libelleOperation'))
obj_amount = Eval(float_to_decimal, Dict('montant'))
obj_type = Transaction.TYPE_DEFERRED_CARD
obj_bdate = Field('rdate')
def obj_date(self):
return dateutil.parser.parse(Dict('datePrelevement')(self))
......
......@@ -444,7 +444,7 @@ class CardsPage(LoggedPage, CragrPage):
tr = FrenchTransaction()
tr.date = latest_date
date_guesser = LinearDateGuesser(latest_date)
tr.rdate = DateGuesser(CleanText('./td[1]//text()'), date_guesser=date_guesser)(item)
tr.rdate = tr.bdate = DateGuesser(CleanText('./td[1]//text()'), date_guesser=date_guesser)(item)
tr.label = tr.raw = CleanText('./td[2]')(item)
tr.amount = CleanDecimal.French('./td[last()]')(item)
tr.type = FrenchTransaction.TYPE_DEFERRED_CARD
......
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