Sha256: b993f5a6dd8c4c981e67d4d5ebb91039e9b3bd081fd068a819868111864432a4

Contents?: true

Size: 380 Bytes

Versions: 3

Compression:

Stored size: 380 Bytes

Contents

class MT940::Abnamro < MT940::Base

  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)
      @transaction.date = parse_date($1)
      @transactions << @transaction
      @tag86 = false
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mt940-0.4.1 lib/mt940/banks/abnamro.rb
mt940-0.4.0 lib/mt940/banks/abnamro.rb
mt940-0.3.0 lib/mt940/banks/abnamro.rb