Sha256: 1aa636598d1b845270c9d37bf441725a9d4d9383f08b3ad05445846be8134117

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

class MT940::Abnamro < MT940::Base

  def self.determine_bank(*args)
    self if args[0].match(/ABNANL/)
  end

  def parse_tag_61
    if @line.match(/^:61:(\d{6})\d{4}(C|D)(\d+),(\d{0,2})/)
      type = $2 == 'D' ? -1 : 1
      @transaction = MT940::Transaction.new(:bank_account => @bank_account, :amount => type * ($3 + '.' + $4).to_f, :bank => @bank)
      @transaction.date = parse_date($1)
      @transactions << @transaction
      @tag86 = false
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mt940-0.5.1 lib/mt940/banks/abnamro.rb