From c984c25c3acfd9a9efa0455cd46b0255f8b62892 Mon Sep 17 00:00:00 2001 From: Christophe Francois Date: Mon, 2 Nov 2020 17:03:44 +0100 Subject: [PATCH] [lcl] Type transaction 'VIREMENT' as transfer in market accounts --- modules/lcl/pages.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/lcl/pages.py b/modules/lcl/pages.py index b60dcbf943..6ceb27aa15 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') -- GitLab