Commit e5736471 authored by ahuillet's avatar ahuillet Committed by Vincent A

fortuneo: fix CardHistory debit vs. credit

The fields were inverted: debit actually comes first.
This fixes a bug where card refunds (the only positive operations in card history) were returned in negative,
hiding the fact that they were, in fact, refunds.
parent 736da1a2
Pipeline #2704 canceled with stages
......@@ -342,8 +342,8 @@ class CardHistoryPage(LoggedPage, HTMLPage):
rdate = cleaner(op.xpath('./td[1]')[0])
date = cleaner(op.xpath('./td[2]')[0])
raw = cleaner(op.xpath('./td[3]')[0])
credit = cleaner(op.xpath('./td[4]')[0])
debit = cleaner(op.xpath('./td[5]')[0])
debit = cleaner(op.xpath('./td[4]')[0])
credit = cleaner(op.xpath('./td[5]')[0])
tr = Transaction()
tr.parse(date=date, raw=raw)
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