From 288ce98559abbeee1a65ce0332aefeb22913523c Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Tue, 26 Apr 2011 23:01:45 +0200 Subject: [PATCH] Allows for bank costs with code DIV (used by SNS bank) --- account_banking_nl_multibank/multibank.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/account_banking_nl_multibank/multibank.py b/account_banking_nl_multibank/multibank.py index d36c5e3a8..1f00cd54c 100644 --- a/account_banking_nl_multibank/multibank.py +++ b/account_banking_nl_multibank/multibank.py @@ -155,7 +155,7 @@ class transaction(models.mem_bank_transaction): self.effective_date) and ( self.remote_account or self.transfer_type in [ - 'KST', 'PRV', 'BTL', 'BEA', 'OPN', 'KNT', + 'KST', 'PRV', 'BTL', 'BEA', 'OPN', 'KNT', 'DIV', ] and not self.error_message ) @@ -306,6 +306,7 @@ to Bank Statements. # Probe first record to find out which format we are parsing. if lines and lines[0].count(',') > lines[0].count(';'): dialect.delimiter = ',' + if lines and lines[0].count("'") > lines[0].count('"'): dialect.quotechar = "'" # Transaction lines are not numbered, so keep a tracer subno = 0