[FIX] Split off BIC part from IBAN in Triodos statements

This commit is contained in:
unknown
2013-06-03 13:00:05 +02:00
committed by Holger Brunn
2 changed files with 8 additions and 2 deletions

View File

@@ -27,7 +27,7 @@
##############################################################################
{
'name': 'Triodos (NL) Bank Statements Import',
'version': '0.92',
'version': '0.168',
'license': 'GPL-3',
'author': 'Therp BV / EduSense BV',
'website': 'https://launchpad.net/account-banking',

View File

@@ -151,8 +151,14 @@ class transaction(models.mem_bank_transaction):
def parse_message(self):
'''
Parse structured message parts into appropriate attributes.
No processing done here for Triodos, maybe later.
'''
# IBAN accounts are prefixed by BIC
if self.remote_account:
parts = self.remote_account.split(' ')
if len(parts) == 2:
self.remote_bank_bic = parts[0]
self.remote_account = parts[1]
class statement(models.mem_bank_statement):
'''