diff --git a/modules/hsbc/pages/account_pages.py b/modules/hsbc/pages/account_pages.py index 53f22381370303c5a7aea231b698929c7b8ecf04..b17c8ffc75aefa076007c8dd1f6d69793c5b8a38 100644 --- a/modules/hsbc/pages/account_pages.py +++ b/modules/hsbc/pages/account_pages.py @@ -214,6 +214,8 @@ class item(ItemElement): def obj_balance(self): if Field('type')(self) == Account.TYPE_CARD: return Decimal(0) + elif 'Mes crédits' in CleanText('.//ancestor::div[1]/preceding-sibling::*')(self): + return - abs(Field('_amount')(self)) return Field('_amount')(self) def obj_coming(self):