mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] Split off BIC part from IBAN in Triodos statements
This commit is contained in:
@@ -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):
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user