From 560df2314f62b8f8c5bd01f59825e9d0bbfe7b5b Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sun, 24 Jul 2011 20:35:54 +0200 Subject: [PATCH] [FIX] Layout change in the Triodos CSV format (account numbers) --- account_banking_nl_triodos/triodos.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/account_banking_nl_triodos/triodos.py b/account_banking_nl_triodos/triodos.py index 5dce39924..c0c6e1dcb 100644 --- a/account_banking_nl_triodos/triodos.py +++ b/account_banking_nl_triodos/triodos.py @@ -68,6 +68,9 @@ class transaction_message(object): # Set statement_id based on week number self.statement_id = self.effective_date.strftime('%Yw%W') self.id = str(subno).zfill(4) + # Normalize basic account numbers + self.remote_account = self.remote_account.replace('.', '').zfill(10) + self.local_account = self.local_account.replace('.', '').zfill(10) class transaction(models.mem_bank_transaction): '''