Commit ed5768c3 authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

[carrefourbanque] make debittype column optionnal

Closes: 30784@sibi 37312@sibi
parent 4d3ee01b
......@@ -200,9 +200,11 @@ class iter_history_generic(Transaction.TransactionsElement):
if len(self.el.xpath('./td')) <= 3:
return Transaction.TYPE_BANK
debittype = CleanText(TableCell('debittype'))(self)
if debittype == 'Différé':
return Transaction.TYPE_DEFERRED_CARD
col = TableCell('debittype', default=None)
if col(self):
debittype = CleanText(col)(self)
if debittype == 'Différé':
return Transaction.TYPE_DEFERRED_CARD
return Transaction.TYPE_CARD
def condition(self):
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