The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit c6091ad2 authored by Damien's avatar Damien Committed by Vincent A

[delubac] Fix transactions amounts

parent 12037f92
......@@ -181,11 +181,7 @@ class item(ItemElement):
obj_date = Date(CleanText(TableCell('date')), dayfirst=True)
obj_vdate = Date(CleanText(TableCell('vdate')), dayfirst=True)
obj_raw = obj_label = Transaction.Raw(TableCell('raw'))
def obj_amount(self):
amount = re.search(r'\-*\d+\.\d+', CleanText(TableCell('amount'))(self))
if amount:
return CleanDecimal.US(amount.group(0))(self)
obj_amount = CleanDecimal.US(CleanText(TableCell('amount')))
def condition(self):
return Field('amount')(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