~therp-nl/banking-addons/6.1-undefined_variables_ref_msg

« back to all changes in this revision

Viewing changes to account_banking_nl_abnamro/abnamro.py

  • Committer: Holger Brunn
  • Author(s): stefan at therp
  • Date: 2013-06-10 10:20:56 UTC
  • mfrom: (171.1.1 ba61)
  • Revision ID: hbrunn@therp.nl-20130610102056-at33akhcjvbi3dlv
[IMP] abnamro: Payment order recognition

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
        'INTL': bt.ORDER, # international order
90
90
        'UNKN': bt.ORDER, # everything else
91
91
        'SEPA': bt.ORDER,
 
92
        'PAYB': bt.PAYMENT_BATCH,
92
93
    }
93
94
 
94
95
    def __init__(self, line, *args, **kwargs):
115
116
            elif not self.execution_date:
116
117
                self.error_message = "No execution date"
117
118
            elif not self.remote_account and self.transfer_type not in [
118
 
                'BEA', 'GEA', 'COSTS', 'UNKN',
 
119
                'BEA', 'GEA', 'COSTS', 'UNKN', 'PAYB',
119
120
                ]:
120
121
                self.error_message = _('No remote account for transaction type '
121
122
                                       '%s') % self.transfer_type
245
246
                remote_owner = field[14:32].strip()
246
247
            elif re.match("^EL[0-9]{13}I", field):
247
248
                transfer_type = 'INTL'
 
249
            elif field.startswith("TOTAAL BETALINGEN"):
 
250
                transfer_type = 'PAYB'
248
251
            return (transfer_type, remote_account, remote_owner)
249
252
        
250
253
        fields = split_blob(self.blob)