diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index b60dcbf9436603c639de97fd2c1552edec3d9ca0..6ceb27aa15730e4094969b8506eab2861959e7a1 100644 --- a/modules/lcl/pages.py +++ b/modules/lcl/pages.py @@ -819,6 +819,11 @@ def condition(self): return True +MARKET_TRANSACTION_TYPES = { + 'VIREMENT': Transaction.TYPE_TRANSFER, +} + + class BoursePage(LoggedPage, HTMLPage): ENCODING = 'latin-1' REFRESH_MAX = 0 @@ -977,7 +982,7 @@ class item(ItemElement): klass = Transaction obj_date = Date(CleanText(TableCell('date')), dayfirst=True) - obj_type = Transaction.TYPE_BANK + obj_type = MapIn(Field('label'), MARKET_TRANSACTION_TYPES, Transaction.TYPE_BANK) obj_amount = CleanDecimal(TableCell('amount'), replace_dots=True) obj_investments = Env('investments')