Sha256: 047551ee0f07f6bfc0dd09989909eb126cbaf4ee7212799a32ee186aee09152e
Contents?: true
Size: 371 Bytes
Versions: 4
Compression:
Stored size: 371 Bytes
Contents
class MT940::Triodos < MT940::Base def self.determine_bank(*args) self if args[0].match(/^:20:/) && args[1] && args[1].match(/^:25:TRIODOSBANK/) end def parse_contra_account if @transaction && @transaction.description.match(/\d+(\d{9})$/) @transaction.contra_account = $1.rjust(9, '000000000') @transaction.description = '' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mt940-0.6.6 | lib/mt940/banks/triodos.rb |
mt940-0.6.5 | lib/mt940/banks/triodos.rb |
mt940-0.6.4 | lib/mt940/banks/triodos.rb |
mt940-0.6.3 | lib/mt940/banks/triodos.rb |