Fix transfer for LEO accounts

This commit is contained in:
Florent 2012-12-17 09:48:30 +01:00 committed by Romain Bignon
commit 67f1cc4db8

View file

@ -96,7 +96,7 @@ class INGBackend(BaseBackend, ICapBank, ICapBill):
if not isinstance(recipient, Recipient):
# Remove weboob identifier prefix (LA-, CC-...)
if "-" in recipient:
recipient = recipient[3:]
recipient = recipient.split('-')[1]
return self.browser.transfer(account, recipient, amount, reason)
def iter_subscription(self):