← Back to team overview

banking-addons-team team mailing list archive

[Merge] lp:~therp-nl/banking-addons/7.0-ing_mt940_update into lp:banking-addons

 

Holger Brunn (Therp) has proposed merging lp:~therp-nl/banking-addons/7.0-ing_mt940_update into lp:banking-addons.

Requested reviews:
  Banking Addons Core Editors (banking-addons-team)

For more details, see:
https://code.launchpad.net/~therp-nl/banking-addons/7.0-ing_mt940_update/+merge/222596
-- 
https://code.launchpad.net/~therp-nl/banking-addons/7.0-ing_mt940_update/+merge/222596
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~therp-nl/banking-addons/7.0-ing_mt940_update into lp:banking-addons.
=== modified file 'account_banking_nl_ing_mt940/account_banking_nl_ing_mt940.py'
--- account_banking_nl_ing_mt940/account_banking_nl_ing_mt940.py	2014-05-12 08:57:10 +0000
+++ account_banking_nl_ing_mt940/account_banking_nl_ing_mt940.py	2014-06-10 07:56:32 +0000
@@ -62,7 +62,8 @@
             return
         super(IngMT940Parser, self).handle_tag_86(cr, data)
         codewords = ['RTRN', 'BENM', 'ORDP', 'CSID', 'BUSP', 'MARF', 'EREF',
-                     'PREF', 'REMI', 'ID', 'PURP', 'ULTB', 'ULTD']
+                     'PREF', 'REMI', 'ID', 'PURP', 'ULTB', 'ULTD',
+                     'CREF', 'IREF', 'CNTP', 'ULTC', 'EXCH', 'CHGS']
         subfields = {}
         current_codeword = None
         for word in data.split('/'):
@@ -75,6 +76,12 @@
             if current_codeword in subfields:
                 subfields[current_codeword].append(word)
 
+        if 'CNTP' in subfields:
+            self.current_transaction.remote_account = subfields['CNTP'][0]
+            self.current_transaction.remote_bank_bic = subfields['CNTP'][1]
+            self.current_transaction.remote_owner = subfields['CNTP'][2]
+            self.current_transaction.remote_owner_city = subfields['CNTP'][3]
+
         if 'BENM' in subfields:
             self.current_transaction.remote_account = subfields['BENM'][0]
             self.current_transaction.remote_bank_bic = subfields['BENM'][1]


Follow ups